Package org.apache.uima.cas.impl
Class TypeSystem2Xml
java.lang.Object
org.apache.uima.cas.impl.TypeSystem2Xml
Dumps a Type System object to XML.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
typeSystem2Xml
(TypeSystem aTypeSystem, OutputStream aOutputStream) Converts a TypeSystem object to XML.static void
typeSystem2Xml
(TypeSystem aTypeSystem, ContentHandler aContentHandler) Traverses a TypeSystem and calls SAX events on the specified ContentHandler.
-
Constructor Details
-
TypeSystem2Xml
public TypeSystem2Xml()
-
-
Method Details
-
typeSystem2Xml
public static void typeSystem2Xml(TypeSystem aTypeSystem, OutputStream aOutputStream) throws SAXException, 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:
IOException
- if there is a problem writing to the provided OutputStreamSAXException
- if an error occurs during the translation of the type system to XML
-
typeSystem2Xml
public static void typeSystem2Xml(TypeSystem aTypeSystem, ContentHandler aContentHandler) throws 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:
SAXException
- if an exception is thrown by the ContentHandler
-