|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.sql.CharacterSet oracle.sql.CharacterSetWithConverter
public abstract class CharacterSetWithConverter
This is an abstract base class that all character sets that use CharacterConverter are based on.
Field Summary | |
---|---|
static java.lang.String |
BUILD_DATE
|
static oracle.sql.converter.CharacterConverterFactory |
ccFactory
|
static boolean |
TRACE
|
Method Summary | |
---|---|
byte[] |
convert(CharacterSet from,
byte[] source,
int offset,
int count)
Converts bytes in some representation to oracleId representation. |
byte[] |
convert(java.lang.String s)
Convert a String to bytes in oracleId representation. |
byte[] |
convertWithReplacement(java.lang.String s)
Convert a String to bytes in oracleId representation. |
boolean |
isConvertibleFrom(CharacterSet source)
Are conversions supported. |
boolean |
isLossyFrom(CharacterSet from)
A conversion looses information if the mapping is not invertible. |
java.lang.String |
toString(byte[] bytes,
int offset,
int count)
Convert bytes in oracleId representation to a String. |
java.lang.String |
toStringWithReplacement(byte[] bytes,
int offset,
int count)
Convert bytes in oracleId representation to a String. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static oracle.sql.converter.CharacterConverterFactory ccFactory
public static final java.lang.String BUILD_DATE
public static final boolean TRACE
Method Detail |
---|
public boolean isLossyFrom(CharacterSet from)
CharacterSet
isLossyFrom
in class CharacterSet
from
- a CharacterSet being tested for compatibility with this
CharacterSet.
public boolean isConvertibleFrom(CharacterSet source)
CharacterSet
isConvertibleFrom
in class CharacterSet
source
- a CharacterSet to inquire about
public java.lang.String toStringWithReplacement(byte[] bytes, int offset, int count)
CharacterSet
toStringWithReplacement
in class CharacterSet
bytes
- a array containing characters represented in this character
set.offset
- the index of the first byte or the charcterscount
- the number of bytes to be converted.
public java.lang.String toString(byte[] bytes, int offset, int count) throws java.sql.SQLException
CharacterSet
toString
in class CharacterSet
bytes
- a array containing characters represented in this character
set.offset
- the index of the first byte or the charcterscount
- the number of bytes to be converted.
java.sql.SQLException
- when conversion is not supported.public byte[] convert(java.lang.String s) throws java.sql.SQLException
CharacterSet
convert
in class CharacterSet
java.sql.SQLException
- when the oracleId does not support conversion from
Unicode.public byte[] convertWithReplacement(java.lang.String s)
CharacterSet
convertWithReplacement
in class CharacterSet
public byte[] convert(CharacterSet from, byte[] source, int offset, int count) throws java.sql.SQLException
CharacterSet
convert
in class CharacterSet
from
- the character set of the input bytessource
- an array of bytes containing the bytes to be convertedoffset
- the index of the first byte to be convertedcount
- the number of bytes to be converted
java.sql.SQLException
- if the conversion is not supported
|
Oracle JDBC API Reference 11g Release 2 ("11.2.0.3.0") |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |