|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ParameterMethod Detail |
---|
public MemoryInputStream open()
public void copyFrom(DataInput in, int length) throws java.io.IOException
DataOutput
copyFrom
in interface DataOutput
copyFrom
in class DataOutputStream
java.io.IOException
public final long written()
written
in interface DataOutput
written
in class DataOutputStream
public void writeByte(int val) throws java.io.IOException
writeByte
in interface DataOutput
writeByte
in class DataOutputStream
val
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic void write(byte[] buf, int offset, int len) throws java.io.IOException
write
in interface DataOutput
write
in class DataOutputStream
buf
- Description of the Parameteroffset
- Description of the Parameterlen
- Description of the Parameter
java.io.IOException
- Description of the Exceptionpublic 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 DataOutputStream
java.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 |