Package org.apache.derby.iapi.types
Class SQLClob.HeaderInfo
- java.lang.Object
-
- org.apache.derby.iapi.types.SQLClob.HeaderInfo
-
- Enclosing class:
- SQLClob
private static class SQLClob.HeaderInfo extends java.lang.ObjectHolder class for header information gathered from the raw byte header in the stream.
-
-
Field Summary
Fields Modifier and Type Field Description private intheaderLengthThe header length in bytes.private intvalueLengthThe value length, either in bytes or characters.
-
Constructor Summary
Constructors Constructor Description HeaderInfo(int headerLength, int valueLength)Creates a new header info object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intbyteLength()Returns the byte length encoded in the header, if any.(package private) intcharLength()Returns the character length encoded in the header, if any.(package private) intheaderLength()Returns the header length in bytes.(package private) booleanisCharLength()Tells whether the encoded length was in characters or bytes.java.lang.StringtoString()Returns a textual representation.
-
-
-
Method Detail
-
headerLength
int headerLength()
Returns the header length in bytes.- Returns:
- Number of bytes occupied by the header.
-
charLength
int charLength()
Returns the character length encoded in the header, if any.- Returns:
- A positive integer if a character count was encoded in the
header, or
0(zero) if the header contained byte length information.
-
byteLength
int byteLength()
Returns the byte length encoded in the header, if any.- Returns:
- A positive integer if a byte count was encoded in the
header, or
0(zero) if the header contained character length information.
-
isCharLength
boolean isCharLength()
Tells whether the encoded length was in characters or bytes.- Returns:
trueif the header contained a character count,falseif it contained a byte count.
-
toString
public java.lang.String toString()
Returns a textual representation.- Overrides:
toStringin classjava.lang.Object
-
-