Package org.apache.uima.cas.impl
Class TypeSystem2Xml
- java.lang.Object
-
- org.apache.uima.cas.impl.TypeSystem2Xml
-
public class TypeSystem2Xml extends java.lang.ObjectDumps a Type System object to XML.
-
-
Constructor Summary
Constructors Constructor Description TypeSystem2Xml()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidtypeSystem2Xml(TypeSystem aTypeSystem, java.io.OutputStream aOutputStream)Converts a TypeSystem object to XML.static voidtypeSystem2Xml(TypeSystem aTypeSystem, org.xml.sax.ContentHandler aContentHandler)Traverses a TypeSystem and calls SAX events on the specified ContentHandler.
-
-
-
Method Detail
-
typeSystem2Xml
public static void typeSystem2Xml(TypeSystem aTypeSystem, java.io.OutputStream aOutputStream) throws org.xml.sax.SAXException, java.io.IOException
Converts a TypeSystem object to XML. Built-in types and array types are not included.- Parameters:
aTypeSystem- the TypeSystem to convertaOutputStream- the stream to which XML output will be written- Throws:
java.io.IOException- if there is a problem writing to the provided OutputStreamorg.xml.sax.SAXException- if an error occurs during the translation of the type system to XML
-
typeSystem2Xml
public static void typeSystem2Xml(TypeSystem aTypeSystem, org.xml.sax.ContentHandler aContentHandler) throws org.xml.sax.SAXException
Traverses a TypeSystem and calls SAX events on the specified ContentHandler.- Parameters:
aTypeSystem- the TypeSystem to traverseaContentHandler- the ContentHandler on which events will be called- Throws:
org.xml.sax.SAXException- if an exception is thrown by the ContentHandler
-
-