net.sourceforge.wohenchan.encoding
Class HtmlEntity

java.lang.Object
  |
  +--net.sourceforge.wohenchan.encoding.HtmlEntity
All Implemented Interfaces:
LanguageInfoInterface

public class HtmlEntity
extends java.lang.Object
implements LanguageInfoInterface

〹 html entity notation

Version:
$Name: $ $Date: 2003/07/11 18:12:45 $
Author:
$Author: wtanaka $

Field Summary
static java.lang.String CANONICAL
           
(package private) static HtmlEntity s_singleton
           
 
Fields inherited from interface net.sourceforge.wohenchan.encoding.LanguageInfoInterface
ALL_ENCODINGS
 
Constructor Summary
private HtmlEntity()
           
 
Method Summary
 java.lang.String getCanonicalString()
           
static HtmlEntity getInstance()
           
 int getProbability(byte[] input)
          The current implementation of this detection algorithm sucks.
 boolean isCharacterInLanguage(char ch)
          Returns true if ch is in the language, or false if it is not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CANONICAL

public static final java.lang.String CANONICAL
See Also:
Constant Field Values

s_singleton

static final HtmlEntity s_singleton
Constructor Detail

HtmlEntity

private HtmlEntity()
Method Detail

getInstance

public static HtmlEntity getInstance()

getCanonicalString

public java.lang.String getCanonicalString()
Specified by:
getCanonicalString in interface LanguageInfoInterface
Returns:
the canonical string describing this language.

getProbability

public int getProbability(byte[] input)
The current implementation of this detection algorithm sucks.


isCharacterInLanguage

public boolean isCharacterInLanguage(char ch)
Description copied from interface: LanguageInfoInterface
Returns true if ch is in the language, or false if it is not.

Specified by:
isCharacterInLanguage in interface LanguageInfoInterface