|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.red5.io.amf3.DataOutput
public class DataOutput
Implementation of the IDataOutput interface. Can be used to store an IExternalizable object.
| Constructor Summary | |
|---|---|
protected |
DataOutput(Output output,
Serializer serializer)
Create a new DataOutput. |
| Method Summary | |
|---|---|
ByteOrder |
getEndian()
Return the byteorder used when storing values. |
void |
setEndian(ByteOrder endian)
Set the byteorder to use when storing values. |
void |
writeBoolean(boolean value)
Write boolean value. |
void |
writeByte(byte value)
Write signed byte value. |
void |
writeBytes(byte[] bytes)
Write multiple bytes. |
void |
writeBytes(byte[] bytes,
int offset)
Write multiple bytes from given offset. |
void |
writeBytes(byte[] bytes,
int offset,
int length)
Write given number of bytes from given offset. |
void |
writeDouble(double value)
Write double-precision floating point value. |
void |
writeFloat(float value)
Write single-precision floating point value. |
void |
writeInt(int value)
Write signed integer value. |
void |
writeMultiByte(String value,
String encoding)
Write string in given character set. |
void |
writeObject(Object value)
Write arbitrary object. |
void |
writeShort(short value)
Write signed short value. |
void |
writeUnsignedInt(long value)
Write unsigned integer value. |
void |
writeUTF(String value)
Write UTF-8 encoded string. |
void |
writeUTFBytes(String value)
Write UTF-8 encoded string as byte array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected DataOutput(Output output,
Serializer serializer)
output - destination to write toserializer - the serializer to use| Method Detail |
|---|
public ByteOrder getEndian()
getEndian in interface IDataOutputpublic void setEndian(ByteOrder endian)
setEndian in interface IDataOutputendian - the byteorder to usepublic void writeBoolean(boolean value)
writeBoolean in interface IDataOutputvalue - the valuepublic void writeByte(byte value)
writeByte in interface IDataOutputvalue - the valuepublic void writeBytes(byte[] bytes)
writeBytes in interface IDataOutputbytes - the bytes
public void writeBytes(byte[] bytes,
int offset)
writeBytes in interface IDataOutputbytes - the bytesoffset - offset in bytes to start writing from
public void writeBytes(byte[] bytes,
int offset,
int length)
writeBytes in interface IDataOutputbytes - the bytesoffset - offset in bytes to start writing fromlength - number of bytes to writepublic void writeDouble(double value)
writeDouble in interface IDataOutputvalue - the valuepublic void writeFloat(float value)
writeFloat in interface IDataOutputvalue - the valuepublic void writeInt(int value)
writeInt in interface IDataOutputvalue - the value
public void writeMultiByte(String value,
String encoding)
writeMultiByte in interface IDataOutputvalue - the stringencoding - the character setpublic void writeObject(Object value)
writeObject in interface IDataOutputvalue - the objectpublic void writeShort(short value)
writeShort in interface IDataOutputvalue - the valuepublic void writeUnsignedInt(long value)
writeUnsignedInt in interface IDataOutputvalue - the valuepublic void writeUTF(String value)
writeUTF in interface IDataOutputvalue - the stringpublic void writeUTFBytes(String value)
IDataInput.readUTFBytes(int) must be used to load it.
writeUTFBytes in interface IDataOutputvalue - the string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||