|
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.PofBufferReader
com.tangosol.io.pof.PofBufferReader.UserTypeReader
public static class PofBufferReader.UserTypeReader
The UserTypeReader implementation is a contextually-aware PofReader whose purpose is to advance through the properties of a value of a specified user type. The "contextual awareness" refers to the fact that the UserTypeReader maintains state about the type identifier and version of the user type, the parser's property index position within the user type value, and a PofContext that may differ from the PofContext that provided the PofSerializer which is using this UserTypeReader to parse a user type.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.tangosol.io.pof.PofBufferReader |
---|
PofBufferReader.UserTypeReader |
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.PofBufferReader |
---|
m_arrayRefs, m_ctx, m_in |
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 | |
---|---|
PofBufferReader.UserTypeReader(ReadBuffer.BufferInput in,
PofContext ctx,
int nTypeId,
int nVersionId)
Construct a parser for parsing the property values of a user type. |
Method Summary | |
---|---|
protected boolean |
advanceTo(int iProp)
Advance through the POF stream until the specified property is found. |
protected void |
complete(int iProp)
Register the completion of the parsing of a value. |
int |
getUserTypeId()
Determine the user type that is currently being parsed. |
int |
getVersionId()
Determine the version identifier of the user type that is currently being parsed. |
Binary |
readRemainder()
Read all remaining indexed properties of the current user type from the POF stream. As part of reading in a user type, this method must be called by the PofSerializer that is reading the user type, or the read position within the POF stream will be corrupted. Subsequent calls to the various readXYZ methods of this interface will fail after this method is called. |
Constructor Detail |
---|
public PofBufferReader.UserTypeReader(ReadBuffer.BufferInput in, PofContext ctx, int nTypeId, int nVersionId) throws IOException
in
- the BufferInput that contains the user type
data, except for the user type id itself (which
is passed passed as a constructor argument)ctx
- the PofContext to use for parsing the user type
property values within the user type that this
parser will be parsingnTypeId
- the type id of the user typenVersionId
- the version id of the user type
IOException
- if an I/O error occursMethod Detail |
---|
public int getUserTypeId()
getUserTypeId
in interface PofReader
getUserTypeId
in class PofBufferReader
public int getVersionId()
getVersionId
in interface PofReader
getVersionId
in class PofBufferReader
public Binary readRemainder() throws IOException
readRemainder
in interface PofReader
readRemainder
in class PofBufferReader
IOException
- if an I/O error occursprotected boolean advanceTo(int iProp) throws IOException
advanceTo
in class PofBufferReader
iProp
- the index of the property to advance to
IOException
- if an I/O error occursprotected void complete(int iProp) throws IOException
complete
in class PofBufferReader
iProp
- the property index
IOException
- if an I/O error occurs
|
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 |