|
Oracle®Database JDBC Java API Reference 12c Release 1 (12.1.0.2) E56669-01 |
|||||||||
| 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 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(String s)Convert a String to bytes in oracleId representation. |
byte[] |
convertWithReplacement(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. |
String |
toString(byte[] bytes, int offset, int count)Convert bytes in oracleId representation to a String. |
String |
toStringWithReplacement(byte[] bytes, int offset, int count)Convert bytes in oracleId representation to a String. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static oracle.sql.converter.CharacterConverterFactory ccFactory
public static final boolean 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 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 String toString(byte[] bytes,
int offset,
int count)
throws 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.SQLException - when conversion is not supported.
public byte[] convert(String s)
throws SQLException
CharacterSetconvert in class CharacterSetSQLException - when the oracleId does not support conversion from Unicode.public byte[] convertWithReplacement(String s)
CharacterSetconvertWithReplacement in class CharacterSet
public byte[] convert(CharacterSet from,
byte[] source,
int offset,
int count)
throws 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 convertedSQLException - if the conversion is not supported
|
Oracle®Database JDBC Java API Reference 12c Release 1 (12.1.0.2) E56669-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||