All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.vt.marian.Document.EntityMap

java.lang.Object
   |
   +----edu.vt.marian.Document.EntityMap

public class EntityMap
extends Object
A mapping between (e.g., ANSEL) characters and (e.g., OAI XML) entities.


Constructor Index

 o EntityMap(Debug)

Method Index

 o getStringFromEntityReader(BufferedReader)
 o load(BufferedReader)
 o mapStringFromEntities(String, BufferedWriter)
Take a string in an entity-based encoding (e.g., XML entity references) and convert it to a character-based encoding (e.g., extended ASCII).
 o mapStringToEntities(String, BufferedWriter)
Take a string in a character encoding (e.g., extended ASCII) and convert it to an entity-based encoding (e.g., XML entity references).

Constructors

 o EntityMap
 public EntityMap(Debug dbg)

Methods

 o load
 public void load(BufferedReader in) throws IOException
 o mapStringToEntities
 public void mapStringToEntities(String str,
                                 BufferedWriter out) throws IOException
Take a string in a character encoding (e.g., extended ASCII) and convert it to an entity-based encoding (e.g., XML entity references). param str The string to be converted. param out A BufferedWriter into which to put the new string.

 o mapStringFromEntities
 public void mapStringFromEntities(String str,
                                   BufferedWriter out) throws IOException
Take a string in an entity-based encoding (e.g., XML entity references) and convert it to a character-based encoding (e.g., extended ASCII). param str The string to be converted. param out A BufferedWriter into which to put the new string.

 o getStringFromEntityReader
 public String getStringFromEntityReader(BufferedReader in) throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index