public abstract class CommandSerializationStreamWriterBase extends Object implements SerializationStreamWriter
Modifier | Constructor and Description |
---|---|
protected |
CommandSerializationStreamWriterBase(CommandSink sink) |
Modifier and Type | Method and Description |
---|---|
protected CommandSink |
getCommandSink() |
protected abstract ValueCommand |
makeValue(Class<?> type,
Object value) |
void |
writeBoolean(boolean value) |
void |
writeByte(byte value) |
void |
writeChar(char value) |
void |
writeDouble(double value) |
void |
writeFloat(float value) |
void |
writeInt(int value) |
void |
writeLong(long value) |
void |
writeObject(Object instance) |
void |
writeShort(short value) |
void |
writeString(String value) |
toString
protected CommandSerializationStreamWriterBase(CommandSink sink)
public void writeBoolean(boolean value) throws SerializationException
writeBoolean
in interface SerializationStreamWriter
SerializationException
public void writeByte(byte value) throws SerializationException
writeByte
in interface SerializationStreamWriter
SerializationException
public void writeChar(char value) throws SerializationException
writeChar
in interface SerializationStreamWriter
SerializationException
public void writeDouble(double value) throws SerializationException
writeDouble
in interface SerializationStreamWriter
SerializationException
public void writeFloat(float value) throws SerializationException
writeFloat
in interface SerializationStreamWriter
SerializationException
public void writeInt(int value) throws SerializationException
writeInt
in interface SerializationStreamWriter
SerializationException
public void writeLong(long value) throws SerializationException
writeLong
in interface SerializationStreamWriter
SerializationException
public void writeObject(Object instance) throws SerializationException
writeObject
in interface SerializationStreamWriter
SerializationException
public void writeShort(short value) throws SerializationException
writeShort
in interface SerializationStreamWriter
SerializationException
public void writeString(String value) throws SerializationException
writeString
in interface SerializationStreamWriter
SerializationException
protected final CommandSink getCommandSink()
protected abstract ValueCommand makeValue(Class<?> type, Object value) throws SerializationException
SerializationException
Copyright © 2018. All rights reserved.