com.hazelcast.nio
Interface ObjectDataOutput
- All Superinterfaces:
- DataOutput
- All Known Subinterfaces:
- BufferObjectDataOutput
- All Known Implementing Classes:
- ObjectDataOutputStream
public interface ObjectDataOutput
- extends DataOutput
Provides serialization methods for arrays by extending DataOutput
Methods inherited from interface java.io.DataOutput |
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
writeByteArray
void writeByteArray(byte[] bytes)
throws IOException
- Parameters:
bytes
- byte array to be written
- Throws:
IOException
writeCharArray
void writeCharArray(char[] chars)
throws IOException
- Parameters:
chars
- char array to be written
- Throws:
IOException
writeIntArray
void writeIntArray(int[] ints)
throws IOException
- Parameters:
ints
- int array to be written
- Throws:
IOException
writeLongArray
void writeLongArray(long[] longs)
throws IOException
- Parameters:
longs
- long array to be written
- Throws:
IOException
writeDoubleArray
void writeDoubleArray(double[] values)
throws IOException
- Parameters:
values
- double to be written
- Throws:
IOException
writeFloatArray
void writeFloatArray(float[] values)
throws IOException
- Parameters:
values
- float to be written
- Throws:
IOException
writeShortArray
void writeShortArray(short[] values)
throws IOException
- Parameters:
values
- short to be written
- Throws:
IOException
writeObject
void writeObject(Object object)
throws IOException
- Parameters:
object
- object to be written
- Throws:
IOException
writeData
void writeData(Data data)
throws IOException
- Parameters:
data
- data to be written
- Throws:
IOException
toByteArray
byte[] toByteArray()
- Returns:
- copy of internal byte array
getByteOrder
ByteOrder getByteOrder()
- Returns:
- ByteOrder BIG_ENDIAN or LITTLE_ENDIAN
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.