Package org.ujmp.core.util
Class XMLUtil
- java.lang.Object
-
- org.ujmp.core.util.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)
-
-
-
Field Detail
-
XMLHEADER
private static final java.lang.String XMLHEADER
- See Also:
- Constant Field Values
-
-
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
-
-