Package de.unirostock.sems.cbarchive
Class Example
- java.lang.Object
-
- de.unirostock.sems.cbarchive.Example
-
public class Example extends Object
execute these commands before running the example:mkdir -p /tmp/base/path/subdir touch /tmp/base/path/{file.sbml,subdir/file.cellml}the directory tree in /tmp/base should then look like:/tmp/base /tmp/base/path /tmp/base/path/subdir /tmp/base/path/subdir/file.cellml /tmp/base/path/file.sbml
This example will create the following files/directories: (you may want to delete them afterwards)/tmp/testArchive.zip /tmp/myDestination /tmp/myExtractedEntry
- Author:
- Martin Scharm
-
-
Field Summary
Fields Modifier and Type Field Description static booleanPRINTshould we print to sys out?.
-
Constructor Summary
Constructors Constructor Description Example()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreateExample()Creates an example archive in/tmp/testArchive.zip.static voidmain(String[] args)static voidreadExample()Reads the example in/tmp/testArchive.zip.
-
-
-
Method Detail
-
createExample
public static void createExample() throws IOException, TransformerException, org.jdom2.JDOMException, ParseException, CombineArchiveException, URISyntaxExceptionCreates an example archive in/tmp/testArchive.zip.- Throws:
IOException- Signals that an I/O exception has occurred.TransformerException- the transformer exceptionCombineArchiveExceptionParseExceptionorg.jdom2.JDOMExceptionURISyntaxException
-
readExample
public static void readExample() throws IOException, org.jdom2.JDOMException, ParseException, CombineArchiveExceptionReads the example in/tmp/testArchive.zip.- Throws:
IOException- Signals that an I/O exception has occurred.org.jdom2.JDOMException- the jDOM exceptionParseException- the parse exceptionCombineArchiveException
-
-