|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.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, 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: |
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 object| Method Detail |
|---|
public void parse(ReadBuffer.BufferInput in)
in - the BufferInput to read the POF value from
protected 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 -1
IOException
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 parse
IOException
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 Type
IOException
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 -1
IOException
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 -1
IOException
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 -1
IOException
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 -1
IOException
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 -1
IOException
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 -1
IOException
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 -1
IOException
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 -1
IOException
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 -1
IOException
public static void main(String[] asArg)
throws Exception
java PofParser
asArg - command line arguments
Exception
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||