Package org.firebirdsql.gds
Class ClumpletReader
- java.lang.Object
- 
- org.firebirdsql.gds.ClumpletReader
 
- 
 public class ClumpletReader extends java.lang.ObjectReader for clumplets, similar to the implementationClumpletReader.cpp.- Since:
- 3.0
- Author:
- Mark Rotteveel
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classClumpletReader.ClumpletTypestatic classClumpletReader.Kind
 - 
Constructor SummaryConstructors Constructor Description ClumpletReader(ClumpletReader.Kind kind, byte[] buffer)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadjustSpbState()booleandirectNext(int tag)Checks if the next tag in this reader istag.booleanfind(int tag)intgetBufferTag()byte[]getBytes()intgetClumpLength()intgetClumpletSize(boolean wTag, boolean wLength, boolean wData)ClumpletReader.ClumpletTypegetClumpletType(byte tag)intgetClumpTag()intgetInt()longgetLong()java.lang.StringgetString(java.nio.charset.Charset charset)java.lang.StringgetString(Encoding encoding)booleanisEof()booleanisTagged()voidmoveNext()booleannext(int tag)Finds the nexttagin the reader, skipping tags to find it.voidrewind()
 
- 
- 
- 
Constructor Detail- 
ClumpletReaderpublic ClumpletReader(ClumpletReader.Kind kind, byte[] buffer) 
 
- 
 - 
Method Detail- 
isTaggedpublic boolean isTagged() 
 - 
getBufferTagpublic int getBufferTag() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
getClumpletTypepublic ClumpletReader.ClumpletType getClumpletType(byte tag) throws java.sql.SQLException - Throws:
- java.sql.SQLException
 
 - 
adjustSpbStatepublic void adjustSpbState() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
getClumpletSizepublic int getClumpletSize(boolean wTag, boolean wLength, boolean wData) throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
moveNextpublic void moveNext() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
rewindpublic void rewind() 
 - 
findpublic boolean find(int tag) throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
nextpublic boolean next(int tag) throws java.sql.SQLExceptionFinds the nexttagin the reader, skipping tags to find it.If tagis not found, the original position of this reader is retained.- Parameters:
- tag- Tag to find
- Returns:
- trueif- tagwas found and this reader is positioned to read it,- falseotherwise
- Throws:
- java.sql.SQLException- For errors positioning
- See Also:
- directNext(int)
 
 - 
directNextpublic boolean directNext(int tag) throws java.sql.SQLExceptionChecks if the next tag in this reader istag.If the next tag is not tag, the original position of this reader is retained.- Parameters:
- tag- Tag to find
- Returns:
- trueif the next tag is- tagand this reader is positioned to read it,- falseotherwise
- Throws:
- java.sql.SQLException- For errors positioning
- Since:
- 5
- See Also:
- next(int)
 
 - 
getClumpTagpublic int getClumpTag() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
getClumpLengthpublic int getClumpLength() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
getBytespublic byte[] getBytes() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
getIntpublic int getInt() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
getLongpublic long getLong() throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
getStringpublic java.lang.String getString(Encoding encoding) throws java.sql.SQLException - Throws:
- java.sql.SQLException
 
 - 
getStringpublic java.lang.String getString(java.nio.charset.Charset charset) throws java.sql.SQLException- Throws:
- java.sql.SQLException
 
 - 
isEofpublic boolean isEof() 
 
- 
 
-