|
Oracle® Database JDBC Java API Reference 11g Release 2 E13995-02 |
||||||||
| 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 CharacterConverterFactory |
ccFactory |
static boolean |
PRIVATE_TRACE |
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 CharacterConverterFactory ccFactory
public static final java.lang.String BUILD_DATE
public static final boolean TRACE
public static final boolean PRIVATE_TRACE
| Method Detail |
|---|
public boolean isLossyFrom(CharacterSet from)
CharacterSetisLossyFrom in class CharacterSetfrom - a CharacterSet being tested for compatibility with this CharacterSet.public boolean isConvertibleFrom(CharacterSet source)
CharacterSetisConvertibleFrom in class CharacterSetsource - a CharacterSet to inquire about
public java.lang.String toStringWithReplacement(byte[] bytes,
int offset,
int count)
CharacterSettoStringWithReplacement in class CharacterSetbytes - 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
CharacterSettoString in class CharacterSetbytes - 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
CharacterSetconvert in class CharacterSetjava.sql.SQLException - when the oracleId does not support conversion from Unicode.public byte[] convertWithReplacement(java.lang.String s)
CharacterSetconvertWithReplacement in class CharacterSet
public byte[] convert(CharacterSet from,
byte[] source,
int offset,
int count)
throws java.sql.SQLException
CharacterSetconvert in class CharacterSetfrom - 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 convertedjava.sql.SQLException - if the conversion is not supported
|
Oracle® Database JDBC Java API Reference 11g Release 2 E13995-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||