java.lang.Object
org.firebirdsql.gds.ClumpletReader
Reader for clumplets, similar to the implementation of
ClumpletReader.cpp in Firebird.- Since:
- 3.0
- Author:
- Mark Rotteveel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleandirectNext(int tag) Checks if the next tag in this reader istag.booleanfind(int tag) intbyte[]getBytes()intintgetClumpletSize(boolean wTag, boolean wLength, boolean wData) getClumpletType(byte tag) intintgetInt()longgetLong()booleanisEof()booleanisTagged()voidmoveNext()booleannext(int tag) Finds the nexttagin the reader, skipping tags to find it.voidrewind()
-
Constructor Details
-
ClumpletReader
-
-
Method Details
-
isTagged
public boolean isTagged() -
getBufferTag
- Throws:
SQLException
-
getClumpletType
- Throws:
SQLException
-
adjustSpbState
- Throws:
SQLException
-
getClumpletSize
- Throws:
SQLException
-
moveNext
- Throws:
SQLException
-
rewind
public void rewind() -
find
- Throws:
SQLException
-
next
Finds 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:
trueiftagwas found and this reader is positioned to read it,falseotherwise- Throws:
SQLException- For errors positioning- See Also:
-
directNext
Checks 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 istagand this reader is positioned to read it,falseotherwise- Throws:
SQLException- For errors positioning- Since:
- 5
- See Also:
-
getClumpTag
- Throws:
SQLException
-
getClumpLength
- Throws:
SQLException
-
getBytes
- Throws:
SQLException
-
getInt
- Throws:
SQLException
-
getLong
- Throws:
SQLException
-
getString
- Throws:
SQLException
-
getString
- Throws:
SQLException
-
isEof
public boolean isEof()
-