Package org.exbin.xbup.core.serial
Class XBPSerialReader
- java.lang.Object
-
- org.exbin.xbup.core.serial.XBPSerialReader
-
- All Implemented Interfaces:
XBPReadSerialHandler
@ParametersAreNonnullByDefault public class XBPSerialReader extends java.lang.Object implements XBPReadSerialHandler
XBUP level 2 serialization object from stream writer.
-
-
Field Summary
Fields Modifier and Type Field Description protected XBTPullProvider
pullProvider
-
Constructor Summary
Constructors Constructor Description XBPSerialReader(java.io.InputStream inputStream)
XBPSerialReader(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
-
XBPSerialReader
public XBPSerialReader(XBTPullProvider pullProvider)
-
XBPSerialReader
public XBPSerialReader(java.io.InputStream inputStream)
-
-
Method Detail
-
read
public void read(XBSerializable serial) throws XBProcessingException, java.io.IOException
Description copied from interface:XBPReadSerialHandler
Reads data from serializable object.- Specified by:
read
in interfaceXBPReadSerialHandler
- Parameters:
serial
- serializable object to process- Throws:
java.io.IOException
- if input/output errorXBProcessingException
-
isValidSerializableObject
public static boolean isValidSerializableObject(XBSerializable serial)
Checks if writer supports serializable object.- Parameters:
serial
- object to test- Returns:
- true if serialization supported
-
-