Class XML_SAX_TYPED_FI
- java.lang.Object
-
- com.sun.xml.fastinfoset.utilities.tools.XML_SAX_TYPED_FI
-
public class XML_SAX_TYPED_FI extends java.lang.Object
Convert a XML document to a fast infoset document using a schema.The schema is used to ascertain the data type of text content or attribute values such that the lexical value of either can be converted to a binary form that is compatible with the Fast Infoset Encoding Algorithms and Restricted Alphabets.
-
-
Constructor Summary
Constructors Constructor Description XML_SAX_TYPED_FI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private com.sun.xml.stream.buffer.XMLStreamBuffer
createBufferFromXMLDocument(java.lang.String schemaLocation, java.io.InputStream xml)
private javax.xml.parsers.SAXParser
getParser()
private SAXDocumentSerializer
getSerializer(java.io.OutputStream fi)
static void
main(java.lang.String[] args)
void
parse(java.lang.String[] args)
void
parse(java.lang.String schemaLocation, java.io.InputStream xml, java.io.OutputStream fi)
-
-
-
Method Detail
-
parse
public void parse(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
parse
public void parse(java.lang.String schemaLocation, java.io.InputStream xml, java.io.OutputStream fi) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getParser
private javax.xml.parsers.SAXParser getParser() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getSerializer
private SAXDocumentSerializer getSerializer(java.io.OutputStream fi)
-
createBufferFromXMLDocument
private com.sun.xml.stream.buffer.XMLStreamBuffer createBufferFromXMLDocument(java.lang.String schemaLocation, java.io.InputStream xml) throws java.lang.Exception
- Throws:
java.lang.Exception
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-