Class 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.

    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XML_SAX_TYPED_FI

        public XML_SAX_TYPED_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
      • 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