|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.egothor.io.DataInputStream
org.egothor.io.DataInputOutputStream
public abstract class DataInputOutputStream
| Constructor Summary | |
|---|---|
DataInputOutputStream()
|
|
| Method Summary | |
|---|---|
void |
copyFrom(DataInput in,
int length)
Copies bytes of a given length from input stream. |
abstract int |
directRead(long from,
byte[] arr)
Read from the offset position without buffering. |
abstract void |
directWrite(long at,
byte[] buf)
|
void |
printUTFS(java.lang.String str,
int firstIndex,
int lastIndex)
Prints a string portion. |
abstract byte |
readByte()
Description of the Method |
abstract int |
readFully(byte[] arr)
Description of the Method |
abstract void |
write(byte[] buf,
int offset,
int len)
|
void |
writeBoolean(boolean value)
|
abstract void |
writeByte(int val)
Write the given byte, which will be converted to Pack7 format. |
void |
writeFully(byte[] buf)
Description of the Method |
void |
writeInt(int val)
Description of the Method |
void |
writeLong(long val)
Description of the Method |
void |
writePack7(long val)
Write the given long, which will be converted to Pack7 format. |
void |
writePack7I(int val)
Write the given integer, which will be converted to Pack7 format. |
void |
writeShort(int val)
Description of the Method |
void |
writeString(int from,
java.lang.String str)
Write a string as length (pack7) followed by UTF code of the string. |
abstract long |
written()
|
| Methods inherited from class org.egothor.io.DataInputStream |
|---|
close, getFilePointer, getMarkPointer, jump, length, mark, read, readBoolean, readInt, readLong, readPack7, readPack7I, readShort, readString, readString, seek, skipBytes, skipPack7, skipPack7I |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataInputOutputStream()
| Method Detail |
|---|
public final void writeFully(byte[] buf)
throws java.io.IOException
DataOutput
writeFully in interface DataOutputbuf - Description of the Parameter
java.io.IOException - Description of the Exceptionpublic abstract long written()
written in interface DataOutput
public abstract void writeByte(int val)
throws java.io.IOException
DataOutput
writeByte in interface DataOutputval - the long to convert and write
java.io.IOException - if an I/O error occurs
public void writeLong(long val)
throws java.io.IOException
DataOutput
writeLong in interface DataOutputval - Description of the Parameter
java.io.IOException - Description of the Exception
public void writeInt(int val)
throws java.io.IOException
writeInt in interface DataOutputval - Description of the Parameter
java.io.IOException - Description of the Exception
public void writeShort(int val)
throws java.io.IOException
writeShort in interface DataOutputval - Description of the Parameter
java.io.IOException - Description of the Exception
public abstract void write(byte[] buf,
int offset,
int len)
throws java.io.IOException
write in interface DataOutputjava.io.IOException
public final void writePack7(long val)
throws java.io.IOException
DataOutput
writePack7 in interface DataOutputval - the long to convert and write
java.io.IOException - if an I/O error occurs
public final void writePack7I(int val)
throws java.io.IOException
DataOutput
writePack7I in interface DataOutputval - the integer to convert and write
java.io.IOException - if an I/O error occurs
public void writeString(int from,
java.lang.String str)
throws java.io.IOException
writeString in interface DataOutputfrom - Description of the Parameterstr - Description of the Parameter
java.io.IOException - Description of the Exception
public void writeBoolean(boolean value)
throws java.io.IOException
writeBoolean in interface DataOutputjava.io.IOException
public abstract byte readByte()
throws java.io.IOException
DataInputStream
readByte in interface DataInputreadByte in class DataInputStreamjava.io.IOException - Description of the Exception
public abstract int readFully(byte[] arr)
throws java.io.IOException
DataInputStream
readFully in interface DataInputreadFully in class DataInputStreamarr - Description of the Parameter
java.io.IOException - Description of the Exception
public void printUTFS(java.lang.String str,
int firstIndex,
int lastIndex)
throws java.io.IOException
DataOutput
printUTFS in interface DataOutputstr - Description of the ParameterfirstIndex - Description of the ParameterlastIndex - Description of the Parameter
java.io.IOException - Description of the Exception
public abstract int directRead(long from,
byte[] arr)
throws java.io.IOException
DataInput
directRead in interface DataInputdirectRead in class DataInputStreamjava.io.IOException
public abstract void directWrite(long at,
byte[] buf)
throws java.io.IOException
java.io.IOException
public void copyFrom(DataInput in,
int length)
throws java.io.IOException
DataOutput
copyFrom in interface DataOutputjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||