|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.servlet.pagecompile.JapaneseConverter
public class JapaneseConverter
Converts Japanese encoded text to UNICODE. Useful when the encoding method of the text is not known. Should only be used if you are really looking for Japanese encoding. If you know you have ASCII, then don't waste your time trying to convert.
The encoding method of the text is determined using Ken Lunde's algorithm. For more information, see "Understanding Japanese Information Processing" by Ken Lunde from O'Reilly & Associates, ISBN 1-56592-043-0.
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
JapaneseConverter()
Empty constructor. |
Method Summary | |
---|---|
java.lang.String |
convert(byte[] pValue,
java.lang.String pEncoding)
Converts the byte array into a Java UNICODE String. |
java.util.Dictionary |
convert(java.util.Dictionary pValue,
java.lang.String pEncoding)
Converts all of the keys and values in the supplied dictionary to UNICODE Strings. |
java.lang.String |
convert(java.lang.String pValue,
java.lang.String pEncoding)
Converts the byte array into a Java UNICODE String. |
java.lang.String |
getFallbackEncoding()
The encoding type to use when the actual encoding type of data to convert could not be discerned. |
void |
setFallbackEncoding(java.lang.String pValue)
The encoding type to use when the actual encoding type of data to convert could not be discerned. |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public JapaneseConverter()
Method Detail |
---|
public void setFallbackEncoding(java.lang.String pValue)
setFallbackEncoding
in interface Converter
public java.lang.String getFallbackEncoding()
getFallbackEncoding
in interface Converter
public java.lang.String convert(byte[] pValue, java.lang.String pEncoding) throws java.io.IOException
The passed in encoding is ignored. This class is designed to look at the data to convert and attempt to discern the encoding of the data.
convert
in interface Converter
java.io.IOException
public java.lang.String convert(java.lang.String pValue, java.lang.String pEncoding) throws java.io.IOException
The passed in encoding is ignored. This class is designed to look at the data to convert and attempt to discern the encoding of the data.
convert
in interface Converter
java.io.IOException
public java.util.Dictionary convert(java.util.Dictionary pValue, java.lang.String pEncoding) throws java.io.IOException
The passed in encoding is ignored. This class is designed to look at the data to convert and attempt to discern the encoding of the data.
convert
in interface Converter
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |