A SAX document handler to read and parse hyphenation patterns
from a XML file.
characters
public void characters(ch[] ,
int start,
int length)
endElement
public void endElement(String uri,
String local,
String raw)
error
public void error(SAXParseException ex)
fatalError
public void fatalError(SAXParseException ex)
throws SAXException
getExceptionWord
protected String getExceptionWord(ArrayList ex)
getInterletterValues
protected static String getInterletterValues(String pat)
getPattern
protected static String getPattern(String word)
main
public static void main(String[] args)
throws Exception
normalizeException
protected ArrayList normalizeException(ArrayList ex)
parse
public void parse(InputSource source)
throws HyphenationException
Parses a hyphenation pattern file.
source
- the InputSource for the file
parse
public void parse(String filename)
throws HyphenationException
Parses a hyphenation pattern file.
readToken
protected String readToken(StringBuffer chars)
startElement
public void startElement(String uri,
String local,
String raw,
Attributes attrs)
warning
public void warning(SAXParseException ex)