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() |
PortableContext |
getPortableContext() |
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 DataOutput
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in interface DataOutput
write
in class OutputStream
IOException
public void writeBoolean(boolean v) throws IOException
writeBoolean
in interface DataOutput
IOException
public void writeByte(int v) throws IOException
writeByte
in interface DataOutput
IOException
public void writeShort(int v) throws IOException
writeShort
in interface DataOutput
IOException
public void writeChar(int v) throws IOException
writeChar
in interface DataOutput
IOException
public void writeInt(int v) throws IOException
writeInt
in interface DataOutput
IOException
public void writeLong(long v) throws IOException
writeLong
in interface DataOutput
IOException
public void writeFloat(float v) throws IOException
writeFloat
in interface DataOutput
IOException
public void writeDouble(double v) throws IOException
writeDouble
in interface DataOutput
IOException
public void writeBytes(String s) throws IOException
writeBytes
in interface DataOutput
IOException
public void writeChars(String s) throws IOException
writeChars
in interface DataOutput
IOException
public void writeCharArray(char[] chars) throws IOException
writeCharArray
in interface com.hazelcast.nio.ObjectDataOutput
IOException
public void writeIntArray(int[] ints) throws IOException
writeIntArray
in interface com.hazelcast.nio.ObjectDataOutput
IOException
public void writeLongArray(long[] longs) throws IOException
writeLongArray
in interface com.hazelcast.nio.ObjectDataOutput
IOException
public void writeDoubleArray(double[] doubles) throws IOException
writeDoubleArray
in interface com.hazelcast.nio.ObjectDataOutput
IOException
public void writeFloatArray(float[] floats) throws IOException
writeFloatArray
in interface com.hazelcast.nio.ObjectDataOutput
IOException
public void writeShortArray(short[] shorts) throws IOException
writeShortArray
in interface com.hazelcast.nio.ObjectDataOutput
IOException
public void writeUTF(String str) throws IOException
writeUTF
in interface DataOutput
IOException
public void write(byte[] b) throws IOException
write
in interface DataOutput
write
in class OutputStream
IOException
public void writeObject(Object object) throws IOException
writeObject
in interface com.hazelcast.nio.ObjectDataOutput
IOException
public byte[] toByteArray()
toByteArray
in interface com.hazelcast.nio.ObjectDataOutput
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
public PortableContext getPortableContext()
public ByteOrder getByteOrder()
getByteOrder
in interface com.hazelcast.nio.ObjectDataOutput
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.