public class JapaneseConverter extends GenericService implements Converter
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.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
SERVICE_INFO_KEYDEFAULT_LOG_TRACE_STATUSDEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS| Constructor and Description |
|---|
JapaneseConverter()
Empty constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopServicevlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarningpublic void setFallbackEncoding(java.lang.String pValue)
setFallbackEncoding in interface Converterpublic java.lang.String getFallbackEncoding()
getFallbackEncoding in interface Converterpublic 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.
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.
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.