public interface IObjectOutput
Modifier and Type | Method and Description |
---|---|
void |
writeBoolean(boolean val)
Writes a boolean.
|
void |
writeByte(byte val)
Writes a 8-bit byte.
|
void |
writeBytes(byte[] buffer)
Writes a number of bytes from the byte array buffer.
|
void |
writeBytes(byte[] buffer,
int offset,
int length)
Writes a number of bytes from the byte array buffer starting at
the offset index.
|
void |
writeChar(char val)
Writes the specified 16-bit character.
|
void |
writeInt(int val)
Writes a 32-bit integer.
|
void |
writeLong(long val)
Writes a 64-bit integer.
|
void |
writeObject(java.lang.Object val)
Writes an object.
|
void |
writeShort(int val)
Writes the specified 16-bit integer.
|
void |
writeUTF(java.lang.String str)
Writes the specified String out in UTF format.
|
void writeBoolean(boolean val) throws java.io.IOException
val
- the boolean value to writejava.io.IOException
- Thrown if an problem occurs.void writeChar(char val) throws java.io.IOException
val
- The character to be writtenjava.io.IOException
- Thrown if an problem occurs.void writeInt(int val) throws java.io.IOException
val
- The integer to be written.java.io.IOException
- Thrown if an problem occurs.void writeLong(long val) throws java.io.IOException
val
- The 64-bit integer.java.io.IOException
- Thrown if an problem occurs.void writeShort(int val) throws java.io.IOException
val
- The 16-bit integer to be written.java.io.IOException
- Thrown if an problem occurs.void writeUTF(java.lang.String str) throws java.io.IOException
str
- The String to be written in UTF format.java.io.IOException
- Thrown if an problem occurs.void writeByte(byte val) throws java.io.IOException
val
- The byte value to writejava.io.IOException
- Thrown if an problem occurs.void writeBytes(byte[] buffer) throws java.io.IOException
buffer
- The buffer to be writtenjava.io.IOException
- Thrown if an problem occurs.void writeBytes(byte[] buffer, int offset, int length) throws java.io.IOException
buffer
- The buffer to be written.offset
- The offset in buffer.length
- The number of bytes to write.java.io.IOException
- Thrown if an problem occurs.void writeObject(java.lang.Object val) throws java.io.IOException
val
- The object to write.java.io.IOException
- Thrown if an problem occurs.