Package g3.project.xmlIO
Class Parse
- java.lang.Object
-
- g3.project.xmlIO.Parse
-
public final class Parse extends java.lang.Object
- Author:
- Group 3
-
-
Constructor Summary
Constructors Constructor Description Parse()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<nu.xom.Document>
parseDocXML(java.io.File xmlFile)
Return the fully parsed representation of the XML doc.static java.util.Optional<nu.xom.Document>
parseDocXML(java.io.InputStream xmlStream)
Return the fully parsed representation of the XML doc.static java.util.Optional<nu.xom.Document>
parseToolXML(java.io.InputStream xmlStream)
Return the fully parsed representation of the XML doc.
-
-
-
Field Detail
-
PWS_NS
public static final java.lang.String PWS_NS
Name-space of the PWS.- See Also:
- Constant Field Values
-
EXT_NS
public static final java.lang.String EXT_NS
Extension name-space.- See Also:
- Constant Field Values
-
-
Method Detail
-
parseDocXML
public static java.util.Optional<nu.xom.Document> parseDocXML(java.io.File xmlFile)
Return the fully parsed representation of the XML doc.- Parameters:
xmlFile
- file for XML.- Returns:
- Optional doc.
-
parseDocXML
public static java.util.Optional<nu.xom.Document> parseDocXML(java.io.InputStream xmlStream)
Return the fully parsed representation of the XML doc.- Parameters:
xmlStream
- streamed XML.- Returns:
- Optional doc.
-
parseToolXML
public static java.util.Optional<nu.xom.Document> parseToolXML(java.io.InputStream xmlStream)
Return the fully parsed representation of the XML doc.- Parameters:
xmlStream
- XML Doc stream.- Returns:
- Optional of doc.
-
-