|
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)
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 aboutpublic 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 String toString(byte[] bytes, int offset, int count) throws 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.SQLException
- when conversion is not supported.public byte[] convert(String s) throws SQLException
CharacterSet
convert
in class CharacterSet
SQLException
- when the oracleId does not support conversion from Unicode.public byte[] convertWithReplacement(String s)
CharacterSet
convertWithReplacement
in class CharacterSet
public byte[] convert(CharacterSet from, byte[] source, int offset, int count) throws 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 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 |