|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.io.pof.PofHelper
com.tangosol.io.pof.PofParser
public class PofParser
A "push" parser (event-based parser) for ripping through a POF stream and delivering the contents as events to a PofHandler object.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.tangosol.io.pof.PofHelper |
---|
PofHelper.ReadableEntrySetMap, PofHelper.WriteableEntrySetMap |
Field Summary |
---|
Fields inherited from class com.tangosol.io.pof.PofHelper |
---|
BIGDECIMAL_ZERO, BIGINTEGER_MAX_LONG, BIGINTEGER_MIN_LONG, BINARY_EMPTY, BOOLEAN_ARRAY_EMPTY, BYTE_ARRAY_EMPTY, CHAR_ARRAY_EMPTY, COLLECTION_EMPTY, DOUBLE_ARRAY_EMPTY, FLOAT_ARRAY_EMPTY, INT_ARRAY_EMPTY, LONG_ARRAY_EMPTY, OBJECT_ARRAY_EMPTY, SHORT_ARRAY_EMPTY |
Constructor Summary | |
---|---|
PofParser(PofHandler handler) Construct a POF parser that will push events to the specified handler. |
Method Summary | |
---|---|
static void |
main(String[] asArg) Unit test: java PofParser <hex string> |
void |
parse(ReadBuffer.BufferInput in) Parse a POF value that is in the passed BufferInput. |
protected void |
parseArray(ReadBuffer.BufferInput in, int iPos) Parse an Array from the POF stream. |
protected void |
parseCollection(ReadBuffer.BufferInput in, int iPos) Parse a Collection from the POF stream. |
protected void |
parseMap(ReadBuffer.BufferInput in, int iPos) Parse a Map from the POF stream. |
protected void |
parseSparseArray(ReadBuffer.BufferInput in, int iPos) Parse a Sparse Array from the POF stream. |
protected void |
parseUniformArray(ReadBuffer.BufferInput in, int iPos) Parse a Uniform Array from the POF stream. |
protected void |
parseUniformCollection(ReadBuffer.BufferInput in, int iPos) Parse a Uniform Collection from the POF stream. |
protected void |
parseUniformKeysMap(ReadBuffer.BufferInput in, int iPos) Parse a Uniform-Keys Map from the POF stream. |
protected void |
parseUniformMap(ReadBuffer.BufferInput in, int iPos) Parse a Uniform Map from the POF stream. |
protected void |
parseUniformSparseArray(ReadBuffer.BufferInput in, int iPos) Parse a Uniform Sparse Array from the POF stream. |
protected void |
parseUniformValue(ReadBuffer.BufferInput in, int iPos, int nType) Within the POF stream, parse a POF value of the specified type that is in the passed BufferInput. |
protected void |
parseUserType(ReadBuffer.BufferInput in, int iPos, int nType) Parse a User Type from the POF stream. |
protected void |
parseValue(ReadBuffer.BufferInput in, int iPos) Within the POF stream, parse a POF value that is in the passed BufferInput. |
Constructor Detail |
---|
public PofParser(PofHandler handler)
handler
- a POF handler objectMethod Detail |
---|
public void parse(ReadBuffer.BufferInput in)
in
- the BufferInput to read the POF value fromprotected void parseValue(ReadBuffer.BufferInput in, int iPos) throws IOException
in
- the BufferInput to read fromiPos
- the position of the value that is about to be read, which is a property index, an array index, or -1IOException
protected void parseUniformValue(ReadBuffer.BufferInput in, int iPos, int nType) throws IOException
in
- the BufferInput to read fromiPos
- the position of the value that is about to be read, which is a property index, an array index, or -1nType
- the Type ID to parseIOException
protected void parseUserType(ReadBuffer.BufferInput in, int iPos, int nType) throws IOException
in
- the BufferInput to read fromiPos
- the position of the value that is about to be read, which is a property index, an array index, or -1nType
- the Type ID for the User TypeIOException
protected void parseCollection(ReadBuffer.BufferInput in, int iPos) throws IOException
in
- the BufferInput to read fromiPos
- the position of the value that is about to be read, which is a property index, an array index, or -1IOException
protected void parseUniformCollection(ReadBuffer.BufferInput in, int iPos) throws IOException
in
- the BufferInput to read fromiPos
- the position of the value that is about to be read, which is a property index, an array index, or -1IOException
protected void parseArray(ReadBuffer.BufferInput in, int iPos) throws IOException
in
- the BufferInput to read fromiPos
- the position of the value that is about to be read, which is a property index, an array index, or -1IOException
protected void parseUniformArray(ReadBuffer.BufferInput in, int iPos) throws IOException
in
- the BufferInput to read fromiPos
- the position of the value that is about to be read, which is a property index, an array index, or -1IOException
protected void parseSparseArray(ReadBuffer.BufferInput in, int iPos) throws IOException
in
- the BufferInput to read fromiPos
- the position of the value that is about to be read, which is a property index, an array index, or -1IOException
protected void parseUniformSparseArray(ReadBuffer.BufferInput in, int iPos) throws IOException
in
- the BufferInput to read fromiPos
- the position of the value that is about to be read, which is a property index, an array index, or -1IOException
protected void parseMap(ReadBuffer.BufferInput in, int iPos) throws IOException
in
- the BufferInput to read fromiPos
- the position of the value that is about to be read, which is a property index, an array index, or -1IOException
protected void parseUniformKeysMap(ReadBuffer.BufferInput in, int iPos) throws IOException
in
- the BufferInput to read fromiPos
- the position of the value that is about to be read, which is a property index, an array index, or -1IOException
protected void parseUniformMap(ReadBuffer.BufferInput in, int iPos) throws IOException
in
- the BufferInput to read fromiPos
- the position of the value that is about to be read, which is a property index, an array index, or -1IOException
public static void main(String[] asArg) throws Exception
java PofParser <hex string>
asArg
- command line argumentsException
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |