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.
-
EntityMap(Debug)
-
-
getStringFromEntityReader(BufferedReader)
-
-
load(BufferedReader)
-
-
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).
-
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).
EntityMap
public EntityMap(Debug dbg)
load
public void load(BufferedReader in) throws IOException
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.
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.
getStringFromEntityReader
public String getStringFromEntityReader(BufferedReader in) throws IOException
All Packages Class Hierarchy This Package Previous Next Index