|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDataInput
Interface implemented by classes that provide a way to load custom objects.
IExternalizable.readExternal(IDataInput)
,
Adobe Livedocs (external)Method Summary | |
---|---|
ByteOrder |
getEndian()
Return the byteorder used when loading values. |
boolean |
readBoolean()
Read boolean value. |
byte |
readByte()
Read signed single byte value. |
void |
readBytes(byte[] bytes)
Read list of bytes. |
void |
readBytes(byte[] bytes,
int offset)
Read list of bytes to given offset. |
void |
readBytes(byte[] bytes,
int offset,
int length)
Read given number of bytes to given offset. |
double |
readDouble()
Read double-precision floating point value. |
float |
readFloat()
Read single-precision floating point value. |
int |
readInt()
Read signed integer value. |
String |
readMultiByte(int length,
String charSet)
Read multibyte string. |
Object |
readObject()
Read arbitrary object. |
short |
readShort()
Read signed short value. |
int |
readUnsignedByte()
Read unsigned single byte value. |
long |
readUnsignedInt()
Read unsigned integer value. |
int |
readUnsignedShort()
Read unsigned short value. |
String |
readUTF()
Read UTF-8 encoded string. |
String |
readUTFBytes(int length)
Read UTF-8 encoded string with given length. |
void |
setEndian(ByteOrder endian)
Set the byteorder to use when loading values. |
Method Detail |
---|
ByteOrder getEndian()
void setEndian(ByteOrder endian)
endian
- the byteorder to useboolean readBoolean()
byte readByte()
void readBytes(byte[] bytes)
bytes
- destination for read bytesvoid readBytes(byte[] bytes, int offset)
bytes
- destination for read bytesoffset
- offset in destination to write tovoid readBytes(byte[] bytes, int offset, int length)
bytes
- destination for read bytesoffset
- offset in destination to write tolength
- number of bytes to readdouble readDouble()
float readFloat()
int readInt()
String readMultiByte(int length, String charSet)
length
- length of string to readcharSet
- character set of string to read
Object readObject()
short readShort()
int readUnsignedByte()
long readUnsignedInt()
int readUnsignedShort()
String readUTF()
String readUTFBytes(int length)
length
- the length of the string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |