Package org.nuxeo.ecm.core.utils
Class ZipFileReader
- java.lang.Object
-
- org.nuxeo.ecm.core.utils.ZipFileReader
-
-
Field Summary
Fields Modifier and Type Field Description static String
NUXEO_ZIP_FILE_READER_CHARSET_FALLBACK_KEY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ZipFile
newZipFile(File file)
Reads aZipFile
as UTF-8 encoded.static ZipFile
newZipFile(String source)
-
-
-
Field Detail
-
NUXEO_ZIP_FILE_READER_CHARSET_FALLBACK_KEY
public static final String NUXEO_ZIP_FILE_READER_CHARSET_FALLBACK_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
newZipFile
public static ZipFile newZipFile(File file) throws IOException
- Returns:
- a
ZipFile
decoded into UTF-8 if possible, or into a configuredCharset
if possible - Throws:
IOException
- if decoding goes wrong
-
newZipFile
public static ZipFile newZipFile(String source) throws IOException
- Throws:
IOException
-
-