Oracle JDBC API Reference
11g Release 2 ("11.2.0.3.0")

oracle.sql
Class CharacterBuffer

java.lang.Object
  extended by oracle.sql.CharacterBuffer

public final class CharacterBuffer
extends java.lang.Object

This class allows the program to construct an array of bytes in some representation using the 32 bit values returned by a CharacterWalker.

See Also:
CharacterWalker, CharacterSet

Field Summary
static java.lang.String BUILD_DATE
           
static boolean TRACE
           
 
Constructor Summary
CharacterBuffer(CharacterSet charSet)
          Constructor.
 
Method Summary
 void append(int c)
          Append the (posibly multi-byte) representation of c.
 byte[] getBytes()
          The accumulated data
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUILD_DATE

public static final java.lang.String BUILD_DATE
See Also:
Constant Field Values

TRACE

public static final boolean TRACE
See Also:
Constant Field Values
Constructor Detail

CharacterBuffer

public CharacterBuffer(CharacterSet charSet)
Constructor.

Parameters:
charSet - the CharacterSet in which the data is represented
Method Detail

append

public void append(int c)
            throws java.sql.SQLException
Append the (posibly multi-byte) representation of c.

Parameters:
c - a value in the 32 bit representation of characters of charSet.
Throws:
java.sql.SQLException - if c is not a value in the 32 bit representation of charSet.

getBytes

public byte[] getBytes()
The accumulated data

Returns:
an array of bytes containing the representation of all characters that have been appended.

Oracle JDBC API Reference
11g Release 2 ("11.2.0.3.0")

Copyright © 1998, 2007, Oracle. All rights reserved.