Package system.io.compression
Class ZipFile
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.io.compression.ZipFile
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class ZipFile extends NetObject
The base .NET class managing System.IO.Compression.ZipFile, System.IO.Compression.ZipFile, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.IO.Compression.ZipFile
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringassemblyFullNameFully assembly qualified name: System.IO.Compression.ZipFile, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089static java.lang.StringassemblyShortNameAssembly name: System.IO.Compression.ZipFilestatic java.lang.StringclassNameQualified class name: System.IO.Compression.ZipFilestatic JCTypeclassTypeThe type managed from JCOBridge.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZipFilecast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoZipFile, a cast assert is made to check if types are compatible.static voidCreateFromDirectory(java.lang.String sourceDirectoryName, java.lang.String destinationArchiveFileName)static voidCreateFromDirectory(java.lang.String sourceDirectoryName, java.lang.String destinationArchiveFileName, CompressionLevel compressionLevel, boolean includeBaseDirectory)static voidCreateFromDirectory(java.lang.String sourceDirectoryName, java.lang.String destinationArchiveFileName, CompressionLevel compressionLevel, boolean includeBaseDirectory, Encoding entryNameEncoding)static voidCreateFromDirectory(java.lang.String sourceDirectoryName, Stream destination)static voidCreateFromDirectory(java.lang.String sourceDirectoryName, Stream destination, CompressionLevel compressionLevel, boolean includeBaseDirectory)static voidCreateFromDirectory(java.lang.String sourceDirectoryName, Stream destination, CompressionLevel compressionLevel, boolean includeBaseDirectory, Encoding entryNameEncoding)static voidExtractToDirectory(java.lang.String sourceArchiveFileName, java.lang.String destinationDirectoryName)static voidExtractToDirectory(java.lang.String sourceArchiveFileName, java.lang.String destinationDirectoryName, boolean overwriteFiles)static voidExtractToDirectory(java.lang.String sourceArchiveFileName, java.lang.String destinationDirectoryName, Encoding entryNameEncoding)static voidExtractToDirectory(java.lang.String sourceArchiveFileName, java.lang.String destinationDirectoryName, Encoding entryNameEncoding, boolean overwriteFiles)static voidExtractToDirectory(Stream source, java.lang.String destinationDirectoryName)static voidExtractToDirectory(Stream source, java.lang.String destinationDirectoryName, boolean overwriteFiles)static voidExtractToDirectory(Stream source, java.lang.String destinationDirectoryName, Encoding entryNameEncoding)static voidExtractToDirectory(Stream source, java.lang.String destinationDirectoryName, Encoding entryNameEncoding, boolean overwriteFiles)java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class Typestatic ZipArchiveOpen(java.lang.String archiveFileName, ZipArchiveMode mode)static ZipArchiveOpen(java.lang.String archiveFileName, ZipArchiveMode mode, Encoding entryNameEncoding)static ZipArchiveOpenRead(java.lang.String archiveFileName)voidsetJCOInstance(JCObject instance)
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.IO.Compression.ZipFile, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.IO.Compression.ZipFile- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.IO.Compression.ZipFile- See Also:
- Constant Field Values
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classNetObject- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classNetObject- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classNetObject- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classNetObject- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static ZipFile cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoZipFile, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
ZipFileinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Open
public static ZipArchive Open(java.lang.String archiveFileName, ZipArchiveMode mode, Encoding entryNameEncoding) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, OutOfMemoryException, SerializationException, IOException, InvalidDataException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionCultureNotFoundExceptionObjectDisposedExceptionOutOfMemoryExceptionSerializationExceptionIOExceptionInvalidDataException
-
Open
public static ZipArchive Open(java.lang.String archiveFileName, ZipArchiveMode mode) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, OutOfMemoryException, SerializationException, IOException, InvalidDataException, FormatException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionArgumentNullExceptionInvalidOperationExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionNotSupportedExceptionObjectDisposedExceptionRankExceptionIndexOutOfRangeExceptionOutOfMemoryExceptionSerializationExceptionIOExceptionInvalidDataExceptionFormatException
-
OpenRead
public static ZipArchive OpenRead(java.lang.String archiveFileName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, SerializationException, IndexOutOfRangeException, IOException, InvalidDataException
-
CreateFromDirectory
public static void CreateFromDirectory(java.lang.String sourceDirectoryName, Stream destination, CompressionLevel compressionLevel, boolean includeBaseDirectory, Encoding entryNameEncoding) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, CultureNotFoundException, ObjectDisposedException, ArrayTypeMismatchException, IOException, InvalidDataException, SerializationException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionArrayTypeMismatchExceptionIOExceptionInvalidDataExceptionSerializationException
-
CreateFromDirectory
public static void CreateFromDirectory(java.lang.String sourceDirectoryName, Stream destination, CompressionLevel compressionLevel, boolean includeBaseDirectory) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, CultureNotFoundException, ObjectDisposedException, ArrayTypeMismatchException, IOException, InvalidDataException, SerializationException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionArrayTypeMismatchExceptionIOExceptionInvalidDataExceptionSerializationException
-
CreateFromDirectory
public static void CreateFromDirectory(java.lang.String sourceDirectoryName, Stream destination) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, PlatformNotSupportedException, IndexOutOfRangeException, CultureNotFoundException, ObjectDisposedException, ArrayTypeMismatchException, IOException, InvalidDataException, SerializationException- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionPlatformNotSupportedExceptionIndexOutOfRangeExceptionCultureNotFoundExceptionObjectDisposedExceptionArrayTypeMismatchExceptionIOExceptionInvalidDataExceptionSerializationException
-
CreateFromDirectory
public static void CreateFromDirectory(java.lang.String sourceDirectoryName, java.lang.String destinationArchiveFileName, CompressionLevel compressionLevel, boolean includeBaseDirectory, Encoding entryNameEncoding) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, SerializationException, ObjectDisposedException, IOException, InvalidDataException, OverflowException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionSerializationExceptionObjectDisposedExceptionIOExceptionInvalidDataExceptionOverflowException
-
CreateFromDirectory
public static void CreateFromDirectory(java.lang.String sourceDirectoryName, java.lang.String destinationArchiveFileName, CompressionLevel compressionLevel, boolean includeBaseDirectory) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, SerializationException, ObjectDisposedException, IOException, InvalidDataException, OverflowException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionSerializationExceptionObjectDisposedExceptionIOExceptionInvalidDataExceptionOverflowException
-
CreateFromDirectory
public static void CreateFromDirectory(java.lang.String sourceDirectoryName, java.lang.String destinationArchiveFileName) throws java.lang.Throwable, NotSupportedException, ArgumentException, ArgumentNullException, IndexOutOfRangeException, PlatformNotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, CultureNotFoundException, SerializationException, ObjectDisposedException, IOException, InvalidDataException, OverflowException- Throws:
java.lang.ThrowableNotSupportedExceptionArgumentExceptionArgumentNullExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionCultureNotFoundExceptionSerializationExceptionObjectDisposedExceptionIOExceptionInvalidDataExceptionOverflowException
-
ExtractToDirectory
public static void ExtractToDirectory(Stream source, java.lang.String destinationDirectoryName, boolean overwriteFiles) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, IndexOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, IOException, InvalidDataException, OutOfMemoryException, UnreachableException, SerializationException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionObjectDisposedExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionIOExceptionInvalidDataExceptionOutOfMemoryExceptionUnreachableExceptionSerializationException
-
ExtractToDirectory
public static void ExtractToDirectory(Stream source, java.lang.String destinationDirectoryName, Encoding entryNameEncoding, boolean overwriteFiles) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, IndexOutOfRangeException, IOException, InvalidDataException, CultureNotFoundException, UnreachableException, SerializationException
- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionIndexOutOfRangeExceptionIOExceptionInvalidDataExceptionCultureNotFoundExceptionUnreachableExceptionSerializationException
-
ExtractToDirectory
public static void ExtractToDirectory(Stream source, java.lang.String destinationDirectoryName, Encoding entryNameEncoding) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, IndexOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, IOException, InvalidDataException, OutOfMemoryException, UnreachableException, SerializationException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionObjectDisposedExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionIOExceptionInvalidDataExceptionOutOfMemoryExceptionUnreachableExceptionSerializationException
-
ExtractToDirectory
public static void ExtractToDirectory(Stream source, java.lang.String destinationDirectoryName) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, ObjectDisposedException, IndexOutOfRangeException, PlatformNotSupportedException, ArrayTypeMismatchException, IOException, InvalidDataException, OutOfMemoryException, UnreachableException, SerializationException
- Throws:
java.lang.ThrowableArgumentExceptionNotSupportedExceptionInvalidOperationExceptionArgumentOutOfRangeExceptionArgumentNullExceptionObjectDisposedExceptionIndexOutOfRangeExceptionPlatformNotSupportedExceptionArrayTypeMismatchExceptionIOExceptionInvalidDataExceptionOutOfMemoryExceptionUnreachableExceptionSerializationException
-
ExtractToDirectory
public static void ExtractToDirectory(java.lang.String sourceArchiveFileName, java.lang.String destinationDirectoryName, boolean overwriteFiles) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, SerializationException, ObjectDisposedException, IndexOutOfRangeException, PlatformNotSupportedException, IOException, InvalidDataException, UnreachableException
-
ExtractToDirectory
public static void ExtractToDirectory(java.lang.String sourceArchiveFileName, java.lang.String destinationDirectoryName, Encoding entryNameEncoding, boolean overwriteFiles) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, PlatformNotSupportedException, NotSupportedException, ObjectDisposedException, InvalidOperationException, RankException, ArrayTypeMismatchException, ArgumentNullException, OutOfMemoryException, SerializationException, IndexOutOfRangeException, IOException, InvalidDataException, UnreachableException, CultureNotFoundException, ExternalException- Throws:
java.lang.ThrowableArgumentExceptionArgumentOutOfRangeExceptionPlatformNotSupportedExceptionNotSupportedExceptionObjectDisposedExceptionInvalidOperationExceptionRankExceptionArrayTypeMismatchExceptionArgumentNullExceptionOutOfMemoryExceptionSerializationExceptionIndexOutOfRangeExceptionIOExceptionInvalidDataExceptionUnreachableExceptionCultureNotFoundExceptionExternalException
-
ExtractToDirectory
public static void ExtractToDirectory(java.lang.String sourceArchiveFileName, java.lang.String destinationDirectoryName, Encoding entryNameEncoding) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, SerializationException, ObjectDisposedException, IndexOutOfRangeException, PlatformNotSupportedException, IOException, InvalidDataException, UnreachableException
-
ExtractToDirectory
public static void ExtractToDirectory(java.lang.String sourceArchiveFileName, java.lang.String destinationDirectoryName) throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, ArgumentNullException, SerializationException, ObjectDisposedException, IndexOutOfRangeException, PlatformNotSupportedException, IOException, InvalidDataException, UnreachableException
-
-