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 enum
static enum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
directNext
(int tag) Checks if the next tag in this reader istag
.boolean
find
(int tag) int
byte[]
getBytes()
int
int
getClumpletSize
(boolean wTag, boolean wLength, boolean wData) getClumpletType
(byte tag) int
int
getInt()
long
getLong()
boolean
isEof()
boolean
isTagged()
void
moveNext()
boolean
next
(int tag) Finds the nexttag
in the reader, skipping tags to find it.void
rewind()
-
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 nexttag
in the reader, skipping tags to find it.If
tag
is not found, the original position of this reader is retained.- Parameters:
tag
- Tag to find- Returns:
true
iftag
was found and this reader is positioned to read it,false
otherwise- 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:
true
if the next tag istag
and this reader is positioned to read it,false
otherwise- 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()
-