|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DataInput
Interface providing methods for reading from binary data.
This interface corresponds to the flash.utils.IDataInput interface
of the core Flash Player API. It assumes binary data to be in big-endian format.
| Method Summary | |
|---|---|
boolean |
readBoolean()
Reads a boolean value. |
byte |
readByte()
Reads and returns a single byte. |
void |
readBytes(byte[] buffer,
int offset,
int length)
Reads the number of bytes specified by the length parameter into the given byte buffer starting at the specified offset. |
double |
readDouble()
Reads and returns a double. |
float |
readFloat()
Reads and returns a float. |
int |
readInt()
Reads and returns an int. |
String |
readMultiByte(int length,
String charset)
Reads a multibyte string of specified length using the given character set. |
Object |
readObject()
Reads, deserializes and returns an object encoded in AMF3 binary format. |
short |
readShort()
Reads and returns a short. |
long |
readUnsignedInt()
Reads and returns an unsigned int. |
String |
readUTF()
Reads and returns a UTF-8 String. |
String |
readUTFBytes(int length)
Reads the specified number of UTF-8 encoded bytes and returns the decoded string. |
| Method Detail |
|---|
boolean readBoolean()
byte readByte()
void readBytes(byte[] buffer,
int offset,
int length)
buffer - the buffer to read intooffset - the offset into the datalength - the number of bytes to readdouble readDouble()
float readFloat()
short readShort()
int readInt()
long readUnsignedInt()
String readUTF()
String readUTFBytes(int length)
length - the number of bytes to read
String readMultiByte(int length,
String charset)
length - the number of bytes to readcharset - the character set to use to decode the bytes
Object readObject()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||