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 ZipInputStreamcreateZipInputStream(InputStream inStream, Charset charset) Returns a ZipInputStream opened with a given charset.(package private) static ZipOutputStreamcreateZipOutputStream(BufferedOutputStream outStream, Charset charset) Returns a ZipOutputStream opened with a given charset.(package private) static ZipFilegetZipFile(File src, Charset charset) Returns a zipFile opened with a given charset(package private) static booleanReturnstrueif 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
Returnstrueif charsets are supported in this JRE.- Throws:
IOException
-