public class ClumpletReader
extends java.lang.Object
ClumpletReader.cpp.| Modifier and Type | Class and Description |
|---|---|
static class |
ClumpletReader.ClumpletType |
static class |
ClumpletReader.Kind |
| Constructor and Description |
|---|
ClumpletReader(ClumpletReader.Kind kind,
byte[] buffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
adjustSpbState() |
boolean |
directNext(int tag)
Checks if the next tag in this reader is
tag. |
boolean |
find(int tag) |
int |
getBufferTag() |
byte[] |
getBytes() |
int |
getClumpLength() |
int |
getClumpletSize(boolean wTag,
boolean wLength,
boolean wData) |
ClumpletReader.ClumpletType |
getClumpletType(byte tag) |
int |
getClumpTag() |
int |
getInt() |
long |
getLong() |
java.lang.String |
getString(java.nio.charset.Charset charset) |
java.lang.String |
getString(Encoding encoding) |
boolean |
isEof() |
boolean |
isTagged() |
void |
moveNext() |
boolean |
next(int tag)
Finds the next
tag in the reader, skipping tags to find it. |
void |
rewind() |
public ClumpletReader(ClumpletReader.Kind kind, byte[] buffer)
public boolean isTagged()
public int getBufferTag()
throws java.sql.SQLException
java.sql.SQLExceptionpublic ClumpletReader.ClumpletType getClumpletType(byte tag) throws java.sql.SQLException
java.sql.SQLExceptionpublic void adjustSpbState()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getClumpletSize(boolean wTag,
boolean wLength,
boolean wData)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void moveNext()
throws java.sql.SQLException
java.sql.SQLExceptionpublic void rewind()
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean find(int tag)
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean next(int tag)
throws java.sql.SQLException
tag in the reader, skipping tags to find it.
If tag is not found, the original position of this reader is retained.
tag - Tag to findtrue if tag was found and this reader is positioned to read it, false otherwisejava.sql.SQLException - For errors positioningdirectNext(int)public boolean directNext(int tag)
throws java.sql.SQLException
tag.
If the next tag is not tag, the original position of this reader is retained.
tag - Tag to findtrue if the next tag is tag and this reader is positioned to read it, false
otherwisejava.sql.SQLException - For errors positioningnext(int)public int getClumpTag()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getClumpLength()
throws java.sql.SQLException
java.sql.SQLExceptionpublic byte[] getBytes()
throws java.sql.SQLException
java.sql.SQLExceptionpublic int getInt()
throws java.sql.SQLException
java.sql.SQLExceptionpublic long getLong()
throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String getString(Encoding encoding) throws java.sql.SQLException
java.sql.SQLExceptionpublic java.lang.String getString(java.nio.charset.Charset charset)
throws java.sql.SQLException
java.sql.SQLExceptionpublic boolean isEof()
Copyright © 2001-2024 Jaybird (Firebird JDBC) team. All rights reserved.