| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.egothor.io.DataOutputStream
org.egothor.io.MemoryOutputStream
public class MemoryOutputStream
This class is part of the Egothor Project
| Constructor Summary | |
|---|---|
| MemoryOutputStream(int size,
                   int delta)Constructor for the MemoryOutputStream object | |
| Method Summary | |
|---|---|
|  void | copyFrom(DataInput in,
         int length)Copies bytes of a given length from input stream. | 
|  void | flush() | 
|  byte[] | getBytes() | 
|  MemoryInputStream | open() | 
|  void | reset()Description of the Method | 
|  void | write(byte[] buf,
      int offset,
      int len)Description of the Method | 
|  void | writeByte(int val)Description of the Method | 
| static void | writeInt(byte[] wr_buff,
         int i,
         int val)Writes the integer value as little-endian in the array from the offset. | 
| static void | writeLong(byte[] wr_buff,
          int i,
          long val)Writes the long-int value as little-endian in the array from the offset. | 
|  void | writeTo(DataOutput dos)Description of the Method | 
|  long | written()Description of the Method | 
| Methods inherited from class org.egothor.io.DataOutputStream | 
|---|
| close, copyFrom, printUTFS, writeBoolean, writeFully, writeInt, writeLong, writePack7, writePack7I, writeShort, writeString | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public MemoryOutputStream(int size,
                          int delta)
size - Description of the Parameterdelta - Description of the Parameter| Method Detail | 
|---|
public MemoryInputStream open()
public void copyFrom(DataInput in,
                     int length)
              throws java.io.IOException
DataOutput
copyFrom in interface DataOutputcopyFrom in class DataOutputStreamjava.io.IOExceptionpublic final long written()
written in interface DataOutputwritten in class DataOutputStream
public void writeByte(int val)
               throws java.io.IOException
writeByte in interface DataOutputwriteByte in class DataOutputStreamval - Description of the Parameter
java.io.IOException - Description of the Exception
public void write(byte[] buf,
                  int offset,
                  int len)
           throws java.io.IOException
write in interface DataOutputwrite in class DataOutputStreambuf - Description of the Parameteroffset - Description of the Parameterlen - Description of the Parameter
java.io.IOException - Description of the Exception
public void writeTo(DataOutput dos)
             throws java.io.IOException
dos - Description of the Parameter
java.io.IOException - Description of the Exceptionpublic void reset()
public byte[] getBytes()
public void flush()
           throws java.io.IOException
flush in class DataOutputStreamjava.io.IOException
public static void writeLong(byte[] wr_buff,
                             int i,
                             long val)
public static void writeInt(byte[] wr_buff,
                            int i,
                            int val)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||