Package org.zeroturnaround.zip
Class ZipFileUtil
java.lang.Object
org.zeroturnaround.zip.ZipFileUtil
Mainly methods to lookup Zip* class constructors. This is needed
because Java 6 doesn't have constructors with Charsets that were
introduced in Java 7.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ZipInputStream
createZipInputStream
(InputStream inStream, Charset charset) Returns a ZipInputStream opened with a given charset.(package private) static ZipOutputStream
createZipOutputStream
(BufferedOutputStream outStream, Charset charset) Returns a ZipOutputStream opened with a given charset.(package private) static ZipFile
getZipFile
(File src, Charset charset) Returns a zipFile opened with a given charset(package private) static boolean
Returnstrue
if charsets are supported in this JRE.
-
Field Details
-
MISSING_METHOD_PLEASE_UPGRADE
- See Also:
-
CONSTRUCTOR_MESSAGE_FOR_ZIPFILE
- See Also:
-
CONSTRUCTOR_MESSAGE_FOR_OUTPUT
- See Also:
-
CONSTRUCTOR_MESSAGE_FOR_INPUT
- See Also:
-
-
Constructor Details
-
ZipFileUtil
private ZipFileUtil()
-
-
Method Details
-
createZipInputStream
Returns a ZipInputStream opened with a given charset. -
createZipOutputStream
Returns a ZipOutputStream opened with a given charset. -
getZipFile
Returns a zipFile opened with a given charset- Throws:
IOException
-
isCharsetSupported
Returnstrue
if charsets are supported in this JRE.- Throws:
IOException
-