|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DataOutput
Interface providing methods for writing binary data.
This interface corresponds to the flash.utils.IDataOutput interface
of the core Flash Player API. Binary data is written in big-endian format.
| Method Summary | |
|---|---|
void |
writeBoolean(boolean value)
Writes a boolean value as a single byte. |
void |
writeByte(byte value)
Writes a single byte. |
void |
writeBytes(byte[] buffer,
int offset,
int length)
Writes the number of bytes specified by the length parameter from the given byte buffer starting at the specified offset. |
void |
writeDouble(double value)
Writes a double value. |
void |
writeFloat(float value)
Writes a float value. |
void |
writeInt(int value)
Writes an int value. |
void |
writeMultiByte(String value,
String charset)
Writes a multibyte string using the given character set. |
void |
writeObject(Object value)
Encodes and writes an object in AMF3 binary format. |
void |
writeShort(short value)
Writes a short value. |
void |
writeUnsignedInt(long value)
Writes an unsigned int. |
void |
writeUTF(String value)
Writes a UTF-8 string prepended by a short value representing the length of the string in bytes. |
void |
writeUTFBytes(String value)
Writes a UTF-8 string. |
| Method Detail |
|---|
void writeBoolean(boolean value)
value - the boolean value to writevoid writeByte(byte value)
value - the byte value to write
void writeBytes(byte[] buffer,
int offset,
int length)
buffer - the data to writeoffset - the offset into the datalength - the number of bytes to writevoid writeDouble(double value)
value - the double value to writevoid writeFloat(float value)
value - the float value to writevoid writeShort(short value)
value - the short value to writevoid writeInt(int value)
value - the int value to writevoid writeUnsignedInt(long value)
value - void writeUTF(String value)
value - void writeUTFBytes(String value)
value -
void writeMultiByte(String value,
String charset)
value - the string to writecharset - the character set to use to decode the bytesvoid writeObject(Object value)
value - the object to encode and write
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||