All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.sql.CharacterBuffer

java.lang.Object
   |
   +----oracle.sql.CharacterBuffer

public final class CharacterBuffer
extends 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, CHAR

Constructor Index

 o CharacterBuffer(CharacterSet)
Constructor.

Method Index

 o append(int)
Append the (posibly multi-byte) representation of c.
 o getBytes()
The accumulated data

Constructors

 o CharacterBuffer
 public CharacterBuffer(CharacterSet charSet)
Constructor.

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

Methods

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

Parameters:
c - a value in the 32 bit representation of characters of charSet.
Throws: SQLException
if c is not a value in the 32 bit representation of charSet.
 o getBytes
 public byte[] getBytes()
The accumulated data

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index