Package org.eclipse.net4j.util.io
Class ZIPUtil
java.lang.Object
org.eclipse.net4j.util.io.ZIPUtil
- Author:
- Eike Stepper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic classstatic classstatic interfacestatic interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.static final int -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisZip(byte[] bytes) Checks whether the given byte array represents a ZIP file by inspecting the magic number.static booleanChecks whether the given file represents a ZIP file by inspecting the magic number.static booleanisZip(InputStream input) Checks whether the given input stream represents a ZIP file by inspecting the magic number.static voidunzip(byte[] bytes, ZIPUtil.UnzipHandler handler) static voidstatic voidunzip(File zipFile, ZIPUtil.UnzipHandler handler) static voidunzip(InputStream input, ZIPUtil.UnzipHandler handler) static voidstatic voidzip(ZIPUtil.ZipEntryHandler handler, File zipFile)
-
Field Details
-
DEFALULT_BUFFER_SIZE
Deprecated.As of 3.4 useDEFAULT_BUFFER_SIZE.- See Also:
-
DEFAULT_BUFFER_SIZE
public static final int DEFAULT_BUFFER_SIZE- Since:
- 3.4
- See Also:
-
-
Method Details
-
isZip
public static boolean isZip(byte[] bytes) Checks whether the given byte array represents a ZIP file by inspecting the magic number.- Since:
- 3.29
-
isZip
Checks whether the given input stream represents a ZIP file by inspecting the magic number.- Throws:
IORuntimeException- Since:
- 3.29
-
isZip
Checks whether the given file represents a ZIP file by inspecting the magic number.- Throws:
IORuntimeException- Since:
- 3.29
-
zip
- Throws:
IORuntimeException
-
zip
-
unzip
- Throws:
IORuntimeException- Since:
- 3.29
-
unzip
- Throws:
IORuntimeException- Since:
- 3.29
-
unzip
- Throws:
IORuntimeException
-
unzip
- Throws:
IORuntimeException
-
DEFAULT_BUFFER_SIZE.