|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.io.amf3.DataInput
public class DataInput
Implementation of the IDataInput interface. Can be used to load an IExternalizable object.
| Constructor Summary | |
|---|---|
protected |
DataInput(Input input,
Deserializer deserializer)
Create a new DataInput. |
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DataInput(Input input,
Deserializer deserializer)
input - input to usedeserializer - the deserializer to use| Method Detail |
|---|
public ByteOrder getEndian()
getEndian in interface IDataInputpublic void setEndian(ByteOrder endian)
setEndian in interface IDataInputendian - the byteorder to usepublic boolean readBoolean()
readBoolean in interface IDataInputpublic byte readByte()
readByte in interface IDataInputpublic void readBytes(byte[] bytes)
readBytes in interface IDataInputbytes - destination for read bytes
public void readBytes(byte[] bytes,
int offset)
readBytes in interface IDataInputbytes - destination for read bytesoffset - offset in destination to write to
public void readBytes(byte[] bytes,
int offset,
int length)
readBytes in interface IDataInputbytes - destination for read bytesoffset - offset in destination to write tolength - number of bytes to readpublic double readDouble()
readDouble in interface IDataInputpublic float readFloat()
readFloat in interface IDataInputpublic int readInt()
readInt in interface IDataInput
public String readMultiByte(int length,
String charSet)
readMultiByte in interface IDataInputlength - length of string to readcharSet - character set of string to read
public Object readObject()
readObject in interface IDataInputpublic short readShort()
readShort in interface IDataInputpublic int readUnsignedByte()
readUnsignedByte in interface IDataInputpublic long readUnsignedInt()
readUnsignedInt in interface IDataInputpublic int readUnsignedShort()
readUnsignedShort in interface IDataInputpublic String readUTF()
readUTF in interface IDataInputpublic String readUTFBytes(int length)
readUTFBytes in interface IDataInputlength - the length of the string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||