Class CommonXML
- java.lang.Object
-
- org.gcube.data.transfer.plugins.thredds.CommonXML
-
public class CommonXML extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCommonXML.Position
-
Constructor Summary
Constructors Constructor Description CommonXML()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddContent(String path, Document doc, String toAddContent, org.gcube.common.resources.gcore.utils.XPathHelper documentHelper, CommonXML.Position position)static DocumentgetDocument(File xmlFile)static org.gcube.common.resources.gcore.utils.XPathHelpergetHelper(Node root)static voidwriteOut(Document document, File destination)
-
-
-
Method Detail
-
getDocument
public static Document getDocument(File xmlFile) throws SAXException, IOException
- Throws:
SAXExceptionIOException
-
getHelper
public static org.gcube.common.resources.gcore.utils.XPathHelper getHelper(Node root)
-
writeOut
public static void writeOut(Document document, File destination) throws IOException, TransformerException
- Throws:
IOExceptionTransformerException
-
addContent
public static void addContent(String path, Document doc, String toAddContent, org.gcube.common.resources.gcore.utils.XPathHelper documentHelper, CommonXML.Position position) throws SAXException, IOException
- Throws:
SAXExceptionIOException
-
-