info.monitorenter.unicode.encoder
Class EncodeUtil

java.lang.Object
  extended byinfo.monitorenter.unicode.encoder.EncodeUtil

public final class EncodeUtil
extends Object

Utility class to encode unicode to various target formats.

Be careful with the methods that work on String data (vs. Streams): Large documents will cause an OutOfMemoryError.

Version:
$Revision: 1.5 $
Author:
Achim Westermann

Method Summary
static String encodeLatex(String unicode)
          Encodes the given unicode input String to latex - compliant input data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

encodeLatex

public static String encodeLatex(String unicode)
                          throws antlr.RecognitionException,
                                 antlr.TokenStreamException
Encodes the given unicode input String to latex - compliant input data.

This covers special characters as german "Umlauts", French accented characters,... .

Parameters:
unicode - the unicode String to encode to latex format.
Returns:
the latex - encoded version of the input String.
Throws:
antlr.TokenStreamException - if something goes wrong while lexing for the next token.
antlr.RecognitionException - if something goes wrong while parsing the next token.


Copyleft ㊢ 2003-2004 MPL 1.1, All Rights Footloose.