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 Summary
Nested Classes Modifier and Type Class Description static classClumpletReader.ClumpletTypestatic classClumpletReader.Kind
-
Constructor Summary
Constructors Constructor Description ClumpletReader(ClumpletReader.Kind kind, byte[] buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadjustSpbState()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)voidrewind()
-
-
-
Constructor Detail
-
ClumpletReader
public ClumpletReader(ClumpletReader.Kind kind, byte[] buffer)
-
-
Method Detail
-
isTagged
public boolean isTagged()
-
getBufferTag
public int getBufferTag() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getClumpletType
public ClumpletReader.ClumpletType getClumpletType(byte tag) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
adjustSpbState
public void adjustSpbState() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getClumpletSize
public int getClumpletSize(boolean wTag, boolean wLength, boolean wData) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
moveNext
public void moveNext() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
rewind
public void rewind() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
find
public boolean find(int tag) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
next
public boolean next(int tag) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getClumpTag
public int getClumpTag() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getClumpLength
public int getClumpLength() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getBytes
public byte[] getBytes() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getInt
public int getInt() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getLong
public long getLong() throws java.sql.SQLException- Throws:
java.sql.SQLException
-
getString
public java.lang.String getString(Encoding encoding) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
getString
public java.lang.String getString(java.nio.charset.Charset charset) throws java.sql.SQLException- Throws:
java.sql.SQLException
-
isEof
public boolean isEof()
-
-