public class ObjectDataOutputStream extends OutputStream implements com.hazelcast.nio.ObjectDataOutput, Closeable
| Constructor and Description |
|---|
ObjectDataOutputStream(OutputStream outputStream,
SerializationService serializationService) |
ObjectDataOutputStream(OutputStream outputStream,
SerializationService serializationService,
ByteOrder byteOrder) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
ByteOrder |
getByteOrder() |
SerializationContext |
getSerializationContext() |
byte[] |
toByteArray() |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
void |
writeBoolean(boolean v) |
void |
writeByte(int v) |
void |
writeBytes(String s) |
void |
writeChar(int v) |
void |
writeCharArray(char[] chars) |
void |
writeChars(String s) |
void |
writeDouble(double v) |
void |
writeDoubleArray(double[] doubles) |
void |
writeFloat(float v) |
void |
writeFloatArray(float[] floats) |
void |
writeInt(int v) |
void |
writeIntArray(int[] ints) |
void |
writeLong(long v) |
void |
writeLongArray(long[] longs) |
void |
writeObject(Object object) |
void |
writeShort(int v) |
void |
writeShortArray(short[] shorts) |
void |
writeUTF(String str) |
public ObjectDataOutputStream(OutputStream outputStream, SerializationService serializationService)
public ObjectDataOutputStream(OutputStream outputStream, SerializationService serializationService, ByteOrder byteOrder)
public void write(int b)
throws IOException
write in interface DataOutputwrite in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in interface DataOutputwrite in class OutputStreamIOExceptionpublic void writeBoolean(boolean v)
throws IOException
writeBoolean in interface DataOutputIOExceptionpublic void writeByte(int v)
throws IOException
writeByte in interface DataOutputIOExceptionpublic void writeShort(int v)
throws IOException
writeShort in interface DataOutputIOExceptionpublic void writeChar(int v)
throws IOException
writeChar in interface DataOutputIOExceptionpublic void writeInt(int v)
throws IOException
writeInt in interface DataOutputIOExceptionpublic void writeLong(long v)
throws IOException
writeLong in interface DataOutputIOExceptionpublic void writeFloat(float v)
throws IOException
writeFloat in interface DataOutputIOExceptionpublic void writeDouble(double v)
throws IOException
writeDouble in interface DataOutputIOExceptionpublic void writeBytes(String s) throws IOException
writeBytes in interface DataOutputIOExceptionpublic void writeChars(String s) throws IOException
writeChars in interface DataOutputIOExceptionpublic void writeCharArray(char[] chars)
throws IOException
writeCharArray in interface com.hazelcast.nio.ObjectDataOutputIOExceptionpublic void writeIntArray(int[] ints)
throws IOException
writeIntArray in interface com.hazelcast.nio.ObjectDataOutputIOExceptionpublic void writeLongArray(long[] longs)
throws IOException
writeLongArray in interface com.hazelcast.nio.ObjectDataOutputIOExceptionpublic void writeDoubleArray(double[] doubles)
throws IOException
writeDoubleArray in interface com.hazelcast.nio.ObjectDataOutputIOExceptionpublic void writeFloatArray(float[] floats)
throws IOException
writeFloatArray in interface com.hazelcast.nio.ObjectDataOutputIOExceptionpublic void writeShortArray(short[] shorts)
throws IOException
writeShortArray in interface com.hazelcast.nio.ObjectDataOutputIOExceptionpublic void writeUTF(String str) throws IOException
writeUTF in interface DataOutputIOExceptionpublic void write(byte[] b)
throws IOException
write in interface DataOutputwrite in class OutputStreamIOExceptionpublic void writeObject(Object object) throws IOException
writeObject in interface com.hazelcast.nio.ObjectDataOutputIOExceptionpublic byte[] toByteArray()
toByteArray in interface com.hazelcast.nio.ObjectDataOutputpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionpublic SerializationContext getSerializationContext()
public ByteOrder getByteOrder()
getByteOrder in interface com.hazelcast.nio.ObjectDataOutputCopyright © 2017 Hazelcast, Inc.. All Rights Reserved.