public abstract class DataInputOutputStream extends DataInputStream implements DataOutput
| Constructor and Description |
|---|
DataInputOutputStream() |
| Modifier and Type | Method and Description |
|---|---|
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(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,
String str)
Write a string as length (pack7) followed by UTF code of the
string.
|
abstract long |
written() |
close, getFilePointer, getMarkPointer, jump, length, mark, read, readBoolean, readInt, readLong, readPack7, readPack7I, readShort, readString, readString, seek, skipBytes, skipPack7, skipPack7Ipublic final void writeFully(byte[] buf)
throws IOException
DataOutputwriteFully in interface DataOutputbuf - Description of the ParameterIOException - Description of the Exceptionpublic abstract long written()
written in interface DataOutputpublic abstract void writeByte(int val)
throws IOException
DataOutputwriteByte in interface DataOutputval - the long to convert and writeIOException - if an I/O error occurspublic void writeLong(long val)
throws IOException
DataOutputwriteLong in interface DataOutputval - Description of the ParameterIOException - Description of the Exceptionpublic void writeInt(int val)
throws IOException
writeInt in interface DataOutputval - Description of the ParameterIOException - Description of the Exceptionpublic void writeShort(int val)
throws IOException
writeShort in interface DataOutputval - Description of the ParameterIOException - Description of the Exceptionpublic abstract void write(byte[] buf,
int offset,
int len)
throws IOException
write in interface DataOutputIOExceptionpublic final void writePack7(long val)
throws IOException
DataOutputwritePack7 in interface DataOutputval - the long to convert and writeIOException - if an I/O error occurspublic final void writePack7I(int val)
throws IOException
DataOutputwritePack7I in interface DataOutputval - the integer to convert and writeIOException - if an I/O error occurspublic void writeString(int from,
String str)
throws IOException
writeString in interface DataOutputfrom - Description of the Parameterstr - Description of the ParameterIOException - Description of the Exceptionpublic void writeBoolean(boolean value)
throws IOException
writeBoolean in interface DataOutputIOExceptionpublic abstract byte readByte()
throws IOException
DataInputStreamreadByte in interface DataInputreadByte in class DataInputStreamIOException - Description of the Exceptionpublic abstract int readFully(byte[] arr)
throws IOException
DataInputStreamreadFully in interface DataInputreadFully in class DataInputStreamarr - Description of the ParameterIOException - Description of the Exceptionpublic void printUTFS(String str, int firstIndex, int lastIndex) throws IOException
DataOutputprintUTFS in interface DataOutputstr - Description of the ParameterfirstIndex - Description of the ParameterlastIndex - Description of the ParameterIOException - Description of the Exceptionpublic abstract int directRead(long from,
byte[] arr)
throws IOException
DataInputdirectRead in interface DataInputdirectRead in class DataInputStreamIOExceptionpublic abstract void directWrite(long at,
byte[] buf)
throws IOException
IOExceptionpublic void copyFrom(DataInput in, int length) throws IOException
DataOutputcopyFrom in interface DataOutputIOExceptionCopyright © 2016 Egothor. All Rights Reserved.