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 StringNUXEO_ZIP_FILE_READER_CHARSET_FALLBACK_KEY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ZipFilenewZipFile(File file)Reads aZipFileas UTF-8 encoded.static ZipFilenewZipFile(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
ZipFiledecoded into UTF-8 if possible, or into a configuredCharsetif possible - Throws:
IOException- if decoding goes wrong
-
newZipFile
public static ZipFile newZipFile(String source) throws IOException
- Throws:
IOException
-
-