IsoEntry

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.zip.IArchiveFileEntry

public abstract class IsoEntry implements IArchiveFileEntry

Represents an entry (file or directory) within an ISO archive.

Methods

MethodDescription
extract(OutputStream destination)Extracts the entry to the stream provided.
extract(String path)Extracts the entry to the filesystem by the path provided.
getLength()Gets the length of the entry.
getModificationTime()Gets last modified date and time.
getName()Gets the name of the entry.
isDirectory()Gets a value indicating whether the entry is a directory.
toString()Returns a string that represents the current entry.

extract(OutputStream destination)

public void extract(OutputStream destination)

Extracts the entry to the stream provided.

Parameters:

ParameterTypeDescription
destinationjava.io.OutputStreamdestination stream

extract(String path)

public File extract(String path)

Extracts the entry to the filesystem by the path provided.

Parameters:

ParameterTypeDescription
pathjava.lang.Stringthe path to the destination file. If the file already exists, it will be overwritten

Returns: java.io.File - java.io.File instance containing extracted data

getLength()

public Long getLength()

Gets the length of the entry.

Returns: java.lang.Long - the length of the entry

getModificationTime()

public final Date getModificationTime()

Gets last modified date and time.

Returns: java.util.Date - last modified date and time

getName()

public final String getName()

Gets the name of the entry.

Returns: java.lang.String - the name of the entry

isDirectory()

public final boolean isDirectory()

Gets a value indicating whether the entry is a directory.

Returns: boolean - a value indicating whether the entry represents a directory

toString()

public String toString()

Returns a string that represents the current entry.

Returns: java.lang.String - the name of the entry