Package com.aspose.zip
Class IsoEntry
- java.lang.Object
-
- com.aspose.zip.IsoEntry
-
- All Implemented Interfaces:
IArchiveFileEntry
public abstract class IsoEntry extends Object implements IArchiveFileEntry
Represents an entry (file or directory) within an ISO archive.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidextract(OutputStream destination)Extracts the entry to the stream provided.Fileextract(String path)Extracts the entry to the filesystem by the path provided.LonggetLength()Gets the length of the entry.DategetModificationTime()Gets last modified date and time.StringgetName()Gets the name of the entry.booleanisDirectory()Gets a value indicating whether the entry is a directory.StringtoString()Returns a string that represents the current entry.
-
-
-
Method Detail
-
getName
public final String getName()
Gets the name of the entry.
- Specified by:
getNamein interfaceIArchiveFileEntry- Returns:
- the name of the entry
-
getLength
public Long getLength()
Gets the length of the entry.
- Specified by:
getLengthin interfaceIArchiveFileEntry- Returns:
- the length of the entry
-
isDirectory
public final boolean isDirectory()
Gets a value indicating whether the entry is a directory.
- Returns:
- a value indicating whether the entry represents a directory
-
getModificationTime
public final Date getModificationTime()
Gets last modified date and time.
- Returns:
- last modified date and time
-
toString
public String toString()
Returns a string that represents the current entry.
-
extract
public File extract(String path)
Extracts the entry to the filesystem by the path provided.
- Specified by:
extractin interfaceIArchiveFileEntry- Parameters:
path- the path to the destination file. If the file already exists, it will be overwritten- Returns:
Fileinstance containing extracted data
-
extract
public void extract(OutputStream destination)
Extracts the entry to the stream provided.
- Specified by:
extractin interfaceIArchiveFileEntry- Parameters:
destination- destination stream- Throws:
com.aspose.ms.System.NotSupportedException- Raises if the entry does not represent a file.
-
-