public class ObjectDataOutputStream extends OutputStream implements ObjectDataOutput, Closeable
| Constructor and Description |
|---|
ObjectDataOutputStream(OutputStream outputStream,
SerializationService serializationService) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
ByteOrder |
getByteOrder() |
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 |
writeByteArray(byte[] bytes) |
void |
writeBytes(String s) |
void |
writeChar(int v) |
void |
writeCharArray(char[] chars) |
void |
writeChars(String s) |
void |
writeData(Data data) |
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 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 writeByteArray(byte[] bytes)
throws IOException
writeByteArray in interface ObjectDataOutputbytes - byte array to be writtenIOExceptionpublic void writeCharArray(char[] chars)
throws IOException
writeCharArray in interface ObjectDataOutputchars - char array to be writtenIOExceptionpublic void writeIntArray(int[] ints)
throws IOException
writeIntArray in interface ObjectDataOutputints - int array to be writtenIOExceptionpublic void writeLongArray(long[] longs)
throws IOException
writeLongArray in interface ObjectDataOutputlongs - long array to be writtenIOExceptionpublic void writeDoubleArray(double[] doubles)
throws IOException
writeDoubleArray in interface ObjectDataOutputdoubles - double to be writtenIOExceptionpublic void writeFloatArray(float[] floats)
throws IOException
writeFloatArray in interface ObjectDataOutputfloats - float to be writtenIOExceptionpublic void writeShortArray(short[] shorts)
throws IOException
writeShortArray in interface ObjectDataOutputshorts - short to be writtenIOExceptionpublic 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 ObjectDataOutputobject - object to be writtenIOExceptionpublic void writeData(Data data) throws IOException
writeData in interface ObjectDataOutputdata - data to be writtenIOExceptionpublic byte[] toByteArray()
toByteArray in interface 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 ByteOrder getByteOrder()
getByteOrder in interface ObjectDataOutputCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.