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.IOExceptionpublic int parseClassDesc() throws java.io.IOException
classDesc part of the stream. Returns the handle of
the class.java.io.IOExceptionpublic SerializedStringObject parseStringObject() throws java.io.IOException
SerializedStringObject.java.io.IOExceptionpublic static SerializedEntityPool parse(java.io.DataInputStream din) throws java.io.IOException
java.io.IOExceptionpublic static SerializedEntityPool parse(java.io.InputStream in) throws java.io.IOException
java.io.IOExceptionpublic static SerializedEntityPool parse(byte[] data) throws java.io.IOException
java.io.IOExceptionpublic static boolean isSerializedObjectStream(byte[] data) throws java.io.IOException
SerializedEntityParser.java.io.IOException