public class SerializedEntityParser extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
isSerializedObjectStream(byte[] data)
Returns true if the data represents a serialized object stream that can be
parsed by the
SerializedEntityParser . |
static SerializedEntityPool |
parse(byte[] data)
Parses entities from a given byte array.
|
static SerializedEntityPool |
parse(java.io.DataInputStream din)
Parses entities from a given data input stream.
|
static SerializedEntityPool |
parse(java.io.InputStream in)
Parses entities from a given input stream.
|
int |
parseClassDesc()
Parses the
classDesc part of the stream. |
int |
parseContent()
Parses the
content part of the stream. |
SerializedStringObject |
parseStringObject()
Parses an object and ensures that the returned object is a
SerializedStringObject . |
public int parseContent() throws java.io.IOException
content
part of the stream. Returns a handle for the
created object.java.io.IOException
public int parseClassDesc() throws java.io.IOException
classDesc
part of the stream. Returns the handle of
the class.java.io.IOException
public SerializedStringObject parseStringObject() throws java.io.IOException
SerializedStringObject
.java.io.IOException
public static SerializedEntityPool parse(java.io.DataInputStream din) throws java.io.IOException
java.io.IOException
public static SerializedEntityPool parse(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static SerializedEntityPool parse(byte[] data) throws java.io.IOException
java.io.IOException
public static boolean isSerializedObjectStream(byte[] data) throws java.io.IOException
SerializedEntityParser
.java.io.IOException