|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDataOutput
Interface implemented by classes that provide a way to store custom objects.
IExternalizable.writeExternal(IDataOutput),
Adobe Livedocs (external)| 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. |
| Method Detail |
|---|
ByteOrder getEndian()
void setEndian(ByteOrder endian)
endian - the byteorder to usevoid writeBoolean(boolean value)
value - the valuevoid writeByte(byte value)
value - the valuevoid writeBytes(byte[] bytes)
bytes - the bytes
void writeBytes(byte[] bytes,
int offset)
bytes - the bytesoffset - offset in bytes to start writing from
void writeBytes(byte[] bytes,
int offset,
int length)
bytes - the bytesoffset - offset in bytes to start writing fromlength - number of bytes to writevoid writeDouble(double value)
value - the valuevoid writeFloat(float value)
value - the valuevoid writeInt(int value)
value - the value
void writeMultiByte(String value,
String encoding)
value - the stringencoding - the character setvoid writeObject(Object value)
value - the objectvoid writeShort(short value)
value - the valuevoid writeUnsignedInt(long value)
value - the valuevoid writeUTF(String value)
value - the stringvoid writeUTFBytes(String value)
IDataInput.readUTFBytes(int) must be used to load it.
value - the string
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||