Class XMLUtil


  • public class XMLUtil
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String XMLHEADER  
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Matrix parse​(java.io.File file)  
      static Matrix parse​(java.io.InputStream is)  
      static void write​(java.io.File file, Matrix matrix)  
      static void write​(java.io.OutputStream out, Matrix matrix)  
      static void write​(java.io.Writer pw, Matrix matrix)  
      • Methods inherited from class java.lang.Object

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

      • XMLUtil

        public XMLUtil()
    • Method Detail

      • parse

        public static Matrix parse​(java.io.File file)
                            throws java.io.FileNotFoundException,
                                   java.io.IOException,
                                   org.xml.sax.SAXException,
                                   javax.xml.parsers.ParserConfigurationException
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
        org.xml.sax.SAXException
        javax.xml.parsers.ParserConfigurationException
      • parse

        public static Matrix parse​(java.io.InputStream is)
                            throws java.io.FileNotFoundException,
                                   java.io.IOException,
                                   org.xml.sax.SAXException,
                                   javax.xml.parsers.ParserConfigurationException
        Throws:
        java.io.FileNotFoundException
        java.io.IOException
        org.xml.sax.SAXException
        javax.xml.parsers.ParserConfigurationException
      • write

        public static void write​(java.io.File file,
                                 Matrix matrix)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        public static void write​(java.io.OutputStream out,
                                 Matrix matrix)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • write

        public static void write​(java.io.Writer pw,
                                 Matrix matrix)
                          throws java.io.IOException
        Throws:
        java.io.IOException