corpus-services  1.0
de.uni_hamburg.corpora.utilities.TypeConverter Class Reference
+ Collaboration diagram for de.uni_hamburg.corpora.utilities.TypeConverter:

Static Public Member Functions

static String InputStream2String (InputStream is)
 
static InputStream String2InputStream (String s)
 
static String BasicTranscription2String (BasicTranscription bt)
 
static BasicTranscription String2BasicTranscription (String btAsString)
 
static StreamSource String2StreamSource (String s)
 
static String JdomDocument2String (org.jdom.Document jdomDocument)
 
static org.jdom.Document String2JdomDocument (String stringRespresentingDocument)
 
static org.jdom.Document W3cDocument2JdomDocument (org.w3c.dom.Document input)
 
static org.w3c.dom.Document JdomDocument2W3cDocument (org.jdom.Document jdomDoc)
 
static String W3cDocument2String (org.w3c.dom.Document doc)
 
static org.w3c.dom.Document String2W3cDocument (String stringRespresentingDocument)
 

Detailed Description

Author
Daniel Jettka

Class containing methods for converting between data types.

Definition at line 42 of file TypeConverter.java.

Member Function Documentation

static String de.uni_hamburg.corpora.utilities.TypeConverter.BasicTranscription2String ( BasicTranscription  bt)
static

Converts a BasicTranscription object into a String object.

Parameters
btBasicTranscription object that shall be converted to String object
Returns
String object that was created from BasicTranscription

Definition at line 74 of file TypeConverter.java.

static String de.uni_hamburg.corpora.utilities.TypeConverter.InputStream2String ( InputStream  is)
static

Converts an InputStream object into a String object.

Parameters
isInputStream object that shall be converted to String object
Returns
String object that was created from InputStream object

Definition at line 50 of file TypeConverter.java.

static String de.uni_hamburg.corpora.utilities.TypeConverter.JdomDocument2String ( org.jdom.Document  jdomDocument)
static

Converts a org.jdom.Document object into a String object.

Parameters
sorg.jdom.Document object that shall be converted to String object
Returns
String object that was created from org.jdom.Document object

Definition at line 117 of file TypeConverter.java.

static org.w3c.dom.Document de.uni_hamburg.corpora.utilities.TypeConverter.JdomDocument2W3cDocument ( org.jdom.Document  jdomDoc)
static

Converts a org.jdom.Document object into a org.w3c.dom.Document object.

Parameters
sorg.jdom.Document object that shall be converted to org.w3c.dom.Document object
Returns
org.w3c.dom.Document object that was created from org.jdom.Document object

Definition at line 174 of file TypeConverter.java.

static BasicTranscription de.uni_hamburg.corpora.utilities.TypeConverter.String2BasicTranscription ( String  btAsString)
static

Converts a String object into a BasicTranscription object.

Parameters
btAsStringString object that shall be converted to BasicTranscription object
Returns
String object that was created from BasicTranscription object

Definition at line 85 of file TypeConverter.java.

static InputStream de.uni_hamburg.corpora.utilities.TypeConverter.String2InputStream ( String  s)
static

Converts a String object into an InputStream object.

Parameters
sString object that shall be converted to InputStream object
Returns
InputStream object that was created from String object

Definition at line 62 of file TypeConverter.java.

static org.jdom.Document de.uni_hamburg.corpora.utilities.TypeConverter.String2JdomDocument ( String  stringRespresentingDocument)
static

Converts a org.jdom.Document object into a String object.

Parameters
sorg.jdom.Document object that shall be converted to String object
Returns
String object that was created from org.jdom.Document object

Definition at line 129 of file TypeConverter.java.

static StreamSource de.uni_hamburg.corpora.utilities.TypeConverter.String2StreamSource ( String  s)
static

Converts a String object into a StreamSource object.

Parameters
sString object that shall be converted to StreamSource object
Returns
StreamSource object that was created from String object

Definition at line 105 of file TypeConverter.java.

static org.w3c.dom.Document de.uni_hamburg.corpora.utilities.TypeConverter.String2W3cDocument ( String  stringRespresentingDocument)
static

Converts a org.jdom.Document object into a String object.

Parameters
sorg.jdom.Document object that shall be converted to String object
Returns
String object that was created from org.jdom.Document object

Definition at line 213 of file TypeConverter.java.

static org.jdom.Document de.uni_hamburg.corpora.utilities.TypeConverter.W3cDocument2JdomDocument ( org.w3c.dom.Document  input)
static

Converts a org.w3c.dom.Document object into a org.jdom.Document object.

Parameters
sorg.w3c.dom.Document object that shall be converted to org.jdom.Document object
Returns
org.jdom.Document object that was created from org.w3c.dom.Document object

Definition at line 155 of file TypeConverter.java.

static String de.uni_hamburg.corpora.utilities.TypeConverter.W3cDocument2String ( org.w3c.dom.Document  doc)
static

Converts a org.w3c.dom.Document object into a String object.

Parameters
docorg.w3c.dom.Document object that shall be converted to String object
Returns
String object that was created from org.w3c.dom.Document object

Definition at line 191 of file TypeConverter.java.


The documentation for this class was generated from the following file: