public class Example extends Object
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.sbmlThis example will create the following files/directories: (you may want to delete them afterwards)
/tmp/testArchive.zip /tmp/myDestination /tmp/myExtractedEntry
Modifier and Type | Field and Description |
---|---|
static boolean |
PRINT
should we print to sys out?.
|
Constructor and Description |
---|
Example() |
Modifier and Type | Method and 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 . |
public static void createExample() throws IOException, TransformerException, org.jdom2.JDOMException, ParseException, CombineArchiveException, URISyntaxException
/tmp/testArchive.zip
.IOException
- Signals that an I/O exception has occurred.TransformerException
- the transformer exceptionCombineArchiveException
ParseException
org.jdom2.JDOMException
URISyntaxException
public static void readExample() throws IOException, org.jdom2.JDOMException, ParseException, CombineArchiveException
/tmp/testArchive.zip
.IOException
- Signals that an I/O exception has occurred.org.jdom2.JDOMException
- the jDOM exceptionParseException
- the parse exceptionCombineArchiveException
Copyright © 2015. All rights reserved.