Package org.exbin.xbup.core.serial
Class XBSerialWriter
- java.lang.Object
-
- org.exbin.xbup.core.serial.XBSerialWriter
-
- All Implemented Interfaces:
XBWriteSerialHandler
@ParametersAreNonnullByDefault public class XBSerialWriter extends java.lang.Object implements XBWriteSerialHandler
Interface for XBUP serialization input handler.
-
-
Constructor Summary
Constructors Constructor Description XBSerialWriter(XBEventListener 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.
-
-
-
Constructor Detail
-
XBSerialWriter
public XBSerialWriter(XBEventListener eventListener)
-
-
Method Detail
-
write
public void write(XBSerializable serial)
Description copied from interface:XBWriteSerialHandler
Writes data to serializable object.- Specified by:
write
in interfaceXBWriteSerialHandler
- 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
-
-