Package org.exbin.xbup.core.serial
Class XBTSerialReader
- java.lang.Object
-
- org.exbin.xbup.core.serial.XBTSerialReader
-
- All Implemented Interfaces:
XBTReadSerialHandler
@ParametersAreNonnullByDefault public class XBTSerialReader extends java.lang.Object implements XBTReadSerialHandler
XBUP level 1 serialization object from stream reader.
-
-
Field Summary
Fields Modifier and Type Field Description protected XBTPullProvider
pullProvider
-
Constructor Summary
Constructors Constructor Description XBTSerialReader(XBTPullProvider pullProvider)
-
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
read(XBSerializable serial)
Reads data from serializable object.
-
-
-
Field Detail
-
pullProvider
protected final XBTPullProvider pullProvider
-
-
Constructor Detail
-
XBTSerialReader
public XBTSerialReader(XBTPullProvider pullProvider)
-
-
Method Detail
-
read
public void read(XBSerializable serial)
Description copied from interface:XBTReadSerialHandler
Reads data from serializable object.- Specified by:
read
in interfaceXBTReadSerialHandler
- 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
-
-