private static class SQLClob.HeaderInfo
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
headerLength
The header length in bytes.
|
private int |
valueLength
The value length, either in bytes or characters.
|
| Constructor and Description |
|---|
SQLClob.HeaderInfo(int headerLength,
int valueLength)
Creates a new header info object.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) int |
byteLength()
Returns the byte length encoded in the header, if any.
|
(package private) int |
charLength()
Returns the character length encoded in the header, if any.
|
(package private) int |
headerLength()
Returns the header length in bytes.
|
(package private) boolean |
isCharLength()
Tells whether the encoded length was in characters or bytes.
|
java.lang.String |
toString()
Returns a textual representation.
|
private final int valueLength
private final int headerLength
SQLClob.HeaderInfo(int headerLength,
int valueLength)
headerLength - the header length in bytesvalueLength - the value length (chars or bytes)int headerLength()
int charLength()
0 (zero) if the header contained byte length
information.int byteLength()
0 (zero) if the header contained character
length information.boolean isCharLength()
true if the header contained a character count,
false if it contained a byte count.public java.lang.String toString()
toString in class java.lang.ObjectApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.