|
|||||||||
| Home >> All >> org >> [ hsqldb overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.hsqldb
Class StringConverter

java.lang.Objectorg.hsqldb.StringConverter
- class StringConverter
- extends java.lang.Object
Collection of static methods for converting strings between different formats and to and from byte arrays
- Version:
- 1.7.0
| Field Summary | |
private static char[] |
HEXCHAR
|
private static java.lang.String |
HEXINDEX
|
| Constructor Summary | |
(package private) |
StringConverter()
|
| Method Summary | |
static java.lang.String |
asciiToUnicode(java.lang.String s)
Hsqldb specific decoding used only for log files. |
(package private) static java.lang.String |
byteToHex(byte[] b)
Method declaration |
static java.lang.String |
hexStringToUnicode(java.lang.String s)
Method declaration |
(package private) static byte[] |
hexToByte(java.lang.String s)
Compacts a hexadecimal string into a byte array |
static java.lang.String |
inputStreamToString(java.io.InputStream x)
Method declaration |
(package private) static java.lang.String |
toQuotedString(java.lang.String s,
char quotechar,
boolean doublequote)
Method declaration |
static java.lang.StringBuffer |
unicodeToAscii(java.lang.String s)
Hsqldb specific encoding used only for log files. |
(package private) static java.lang.String |
unicodeToHexString(java.lang.String s)
Method declaration |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
HEXCHAR
private static final char[] HEXCHAR
HEXINDEX
private static final java.lang.String HEXINDEX
- See Also:
- Constant Field Values
| Constructor Detail |
StringConverter
StringConverter()
| Method Detail |
hexToByte
static byte[] hexToByte(java.lang.String s) throws java.sql.SQLException
- Compacts a hexadecimal string into a byte array
byteToHex
static java.lang.String byteToHex(byte[] b)
- Method declaration
unicodeToHexString
static java.lang.String unicodeToHexString(java.lang.String s)
- Method declaration
hexStringToUnicode
public static java.lang.String hexStringToUnicode(java.lang.String s) throws java.sql.SQLException
- Method declaration
unicodeToAscii
public static java.lang.StringBuffer unicodeToAscii(java.lang.String s)
- Hsqldb specific encoding used only for log files.
The SQL statements that go into the log file (input) are Unicode
strings. input is converted into an ASCII string (output) with the
following transformations.
All characters outside the 0x20-7f range are converted to Java Unicode
escape sequence and added to output.
If a backslash character is immdediately followed by 'u', the
backslash character is converted to Java Unicode escape sequence and
added to output.
All the remaining characters in input are added to output without
conversion. (fredt@users)
asciiToUnicode
public static java.lang.String asciiToUnicode(java.lang.String s)
- Hsqldb specific decoding used only for log files.
This method converts the ASCII strings in a log file back into
Java Unicode strings. See unicodeToAccii() above,
inputStreamToString
public static java.lang.String inputStreamToString(java.io.InputStream x) throws java.sql.SQLException
- Method declaration
toQuotedString
static java.lang.String toQuotedString(java.lang.String s, char quotechar, boolean doublequote)
- Method declaration
|
|||||||||
| Home >> All >> org >> [ hsqldb overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.hsqldb.StringConverter