| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the character count is encoded into the header,
false if the byte count is encoded into the header.Tells if the header encodes a character or byte count. |
| public int | Returns: The number of bytes written into the buffer.the buffer to write into buf, int starting offset in the buffer offset, long the length of the stream, can be in either bytes or
characters depending on the header format valueLength)Generates the header for the specified length and writes it into the provided buffer, starting at the specified offset. |
| public int | Returns: The number of bytes written to the destination stream.the destination stream out, long the length of the stream, can be in either bytes or
characters depending on the header format valueLength)Generates the header for the specified length and writes it into the destination stream. |
| public int | |
| public int | Returns: Number of bytes written (zero or more).the buffer to write into buffer, int starting offset in the buffer offset, long the length of the stream, can be in either bytes or
characters depending on the header format valueLength)Writes a Derby-specific end-of-stream marker to the buffer for a stream of the specified length, if required. |
| public int | Returns: Number of bytes written (zero or more).the destination stream out, long the length of the stream, can be in either bytes or
characters depending on the header format valueLength)Writes a Derby-specific end-of-stream marker to the destination stream for the specified length, if required. |
| expectsCharCount | back to summary |
|---|---|
| public boolean expectsCharCount() Tells if the header encodes a character or byte count.
| |
| generateInto | back to summary |
|---|---|
| public int generateInto(byte[] buf, int offset, long valueLength) Generates the header for the specified length and writes it into the provided buffer, starting at the specified offset.
| |
| generateInto | back to summary |
|---|---|
| public int generateInto(ObjectOutput out, long valueLength) throws IOException Generates the header for the specified length and writes it into the destination stream.
| |
| getMaxHeaderLength | back to summary |
|---|---|
| public int getMaxHeaderLength() Returns the maximum length of the header.
| |
| writeEOF | back to summary |
|---|---|
| public int writeEOF(byte[] buffer, int offset, long valueLength) Writes a Derby-specific end-of-stream marker to the buffer for a stream of the specified length, if required.
| |
| writeEOF | back to summary |
|---|---|
| public int writeEOF(ObjectOutput out, long valueLength) throws IOException Writes a Derby-specific end-of-stream marker to the destination stream for the specified length, if required.
| |