AlzEntry
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.zip.IArchiveFileEntry
public abstract class AlzEntry implements IArchiveFileEntry
Represents a file entry in an ALZ archive together with its metadata.
Methods
| Method | Description |
|---|---|
| extract(OutputStream destination) | Extracts the entry to a writable stream. |
| extract(OutputStream destination, String password) | Extracts the entry to a writable stream using an optional password. |
| extract(String path) | Extracts the entry to the specified file. |
| extract(String path, String password) | Extracts the entry to the specified file using an optional password. |
| getCompressedSize() | Gets the compressed size of the entry data in bytes. |
| getLength() | Gets the uncompressed length of this entry. |
| getName() | Gets the entry name stored in the archive. |
| getUncompressedSize() | Gets the uncompressed size of the entry data in bytes. |
| isDirectory() | Gets whether this entry represents a directory. |
| open() | Opens the entry and provides a stream containing decompressed data. |
| open(String password) | Opens the entry and provides a stream containing decompressed data. |
extract(OutputStream destination)
public final void extract(OutputStream destination)
Extracts the entry to a writable stream.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| destination | java.io.OutputStream | destination stream |
extract(OutputStream destination, String password)
public final void extract(OutputStream destination, String password)
Extracts the entry to a writable stream using an optional password.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| destination | java.io.OutputStream | destination stream |
| password | java.lang.String | optional password for this entry |
extract(String path)
public final File extract(String path)
Extracts the entry to the specified file. An existing file is overwritten.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| path | java.lang.String | destination file path |
Returns: java.io.File - extracted file
extract(String path, String password)
public final File extract(String path, String password)
Extracts the entry to the specified file using an optional password.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| path | java.lang.String | destination file path |
| password | java.lang.String | optional password for this entry |
Returns: java.io.File - extracted file
getCompressedSize()
public final long getCompressedSize()
Gets the compressed size of the entry data in bytes.
Returns: long - compressed size in bytes
getLength()
public final Long getLength()
Gets the uncompressed length of this entry.
Returns: java.lang.Long - uncompressed length in bytes
getName()
public final String getName()
Gets the entry name stored in the archive.
Returns: java.lang.String - entry name
getUncompressedSize()
public final long getUncompressedSize()
Gets the uncompressed size of the entry data in bytes.
Returns: long - uncompressed size in bytes
isDirectory()
public final boolean isDirectory()
Gets whether this entry represents a directory.
Returns:
boolean - true for a directory entry
open()
public final InputStream open()
Opens the entry and provides a stream containing decompressed data.
Returns: java.io.InputStream - stream containing decompressed entry data
open(String password)
public final InputStream open(String password)
Opens the entry and provides a stream containing decompressed data.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| password | java.lang.String | optional password for this entry |
Returns: java.io.InputStream - stream containing decompressed entry data