Package writer2latex.util
Class SimpleZipReader
java.lang.Object
writer2latex.util.SimpleZipReader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]Get an entry from the ZIP file.voidread(InputStream is) Read a zipped stream
-
Constructor Details
-
SimpleZipReader
public SimpleZipReader()
-
-
Method Details
-
read
Read a zipped stream- Parameters:
is-InputStreamto read- Throws:
IOException- if an I/O error occurs
-
getEntry
Get an entry from the ZIP file. Getting should be taken quite literally here: You can only get an entry once: TheSimpleZipReaderremoves the entry from the collection when this method is called (memory optimization).- Parameters:
sName- the name (path) of the ZIP entry- Returns:
- a byte array with the contents of the entry, or null if the entry does not exist
-