Package org.exbin.xbup.core.serial
Class XBPSerialWriter
- java.lang.Object
-
- org.exbin.xbup.core.serial.XBPSerialWriter
-
- All Implemented Interfaces:
XBPWriteSerialHandler
@ParametersAreNonnullByDefault public class XBPSerialWriter extends java.lang.Object implements XBPWriteSerialHandler
XBUP level 2 serialization object to stream writer.
-
-
Field Summary
Fields Modifier and Type Field Description protected XBTEventListener
eventListener
-
Constructor Summary
Constructors Constructor Description XBPSerialWriter(java.io.OutputStream outputStream)
XBPSerialWriter(XBTEventListener eventListener)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
isValidSerializableObject(XBSerializable serial)
Checks if writer supports serializable object.void
write(XBSerializable serial)
Writes data to serializable object.
-
-
-
Field Detail
-
eventListener
protected final XBTEventListener eventListener
-
-
Constructor Detail
-
XBPSerialWriter
public XBPSerialWriter(XBTEventListener eventListener)
-
XBPSerialWriter
public XBPSerialWriter(java.io.OutputStream outputStream)
-
-
Method Detail
-
write
public void write(XBSerializable serial)
Description copied from interface:XBPWriteSerialHandler
Writes data to serializable object.- Specified by:
write
in interfaceXBPWriteSerialHandler
- Parameters:
serial
- serializable object to process
-
isValidSerializableObject
public static boolean isValidSerializableObject(XBSerializable serial)
Checks if writer supports serializable object.- Parameters:
serial
- object to test- Returns:
- true if serialization supported
-
-