EggEntry
Inheritance: java.lang.Object
All Implemented Interfaces: com.aspose.zip.IArchiveFileEntry
public abstract class EggEntry implements IArchiveFileEntry
Represents a file entry in an EGG archive with all its metadata.
Methods
| Method | Description |
|---|---|
| extract(OutputStream destination) | Extracts the entry to the stream provided. |
| extract(String path) | Extracts the entry to a file. |
| getCompressedSize() | Gets the compressed size of the entry. |
| getLength() | Gets the uncompressed length of the entry. |
| getModificationTime() | Gets the last modified date and time. |
| getName() | Gets the name of the entry within the archive. |
| getUncompressedSize() | Gets the uncompressed size of the entry. |
| isDirectory() | Gets a value indicating whether this entry represents a directory. |
| open() | Opens the entry for extraction and provides a stream with decompressed entry content. |
extract(OutputStream destination)
public final void extract(OutputStream destination)
Extracts the entry to the stream provided.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| destination | java.io.OutputStream | destination stream. Must be writable. |
extract(String path)
public final File extract(String path)
Extracts the entry to a file. An existing file is overwritten.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| path | java.lang.String | destination file path. |
Returns: java.io.File - extracted file.
getCompressedSize()
public final long getCompressedSize()
Gets the compressed size of the entry.
Returns: long - the compressed size of the entry.
getLength()
public final Long getLength()
Gets the uncompressed length of the entry.
Returns: java.lang.Long - the uncompressed length of the entry.
getModificationTime()
public final Date getModificationTime()
Gets the last modified date and time.
Returns: java.util.Date - the last modified date and time.
getName()
public final String getName()
Gets the name of the entry within the archive.
Returns: java.lang.String - the name of the entry within the archive.
getUncompressedSize()
public final long getUncompressedSize()
Gets the uncompressed size of the entry.
Returns: long - the uncompressed size of the entry.
isDirectory()
public final boolean isDirectory()
Gets a value indicating whether this entry represents a directory.
Returns:
boolean - true if this entry represents a directory; otherwise, false.
open()
public final InputStream open()
Opens the entry for extraction and provides a stream with decompressed entry content.
Returns: java.io.InputStream - stream representing the contents of the entry.