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 boolean
PRINT
should 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 void
createExample()
Creates an example archive in/tmp/testArchive.zip
.static void
main(String[] args)
static void
readExample()
Reads the example in/tmp/testArchive.zip
.
-
-
-
Method Detail
-
createExample
public static void createExample() throws IOException, TransformerException, org.jdom2.JDOMException, ParseException, CombineArchiveException, URISyntaxException
Creates an example archive in/tmp/testArchive.zip
.- Throws:
IOException
- Signals that an I/O exception has occurred.TransformerException
- the transformer exceptionCombineArchiveException
ParseException
org.jdom2.JDOMException
URISyntaxException
-
readExample
public static void readExample() throws IOException, org.jdom2.JDOMException, ParseException, CombineArchiveException
Reads 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
-
-