Class WimEntry
- java.lang.Object
-
- com.aspose.zip.WimEntry
-
- Direct Known Subclasses:
WimDirectoryEntry,WimFileEntry
public abstract class WimEntry extends Object
Represents a single file or directory within wim image.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String[]getAlternateDataStreams()Gets the names of the alternate data streams for the file or directory.WimArchivegetArchive()Gets the archive the entry belongs to.DategetChangeTime()Gets the last time the file or directory was changed.DategetCreationTime()Gets the creation time of the file or directory.intgetFileAttributes()Gets the file or directory attributes.StringgetFullPath()Gets the full path of the entry within the image.longgetHardLink()Gets the hardlink id of the file or directory.WimImagegetImage()Gets the image the entry belongs to.DategetLastAccessTime()Gets the last access time of the file or directory.DategetLastWriteTime()Deprecated.This method will be removed in a future release.DategetModificationTime()Gets the modification time of the file or directory.StringgetName()Gets the name of the entry within the image.WimDirectoryEntrygetParent()Gets the parent directory the entry belongs to.StringgetShortName()Gets the short name of the entry within the image.booleanhasHardLinks()Gets whether the file or directory is known by other names.booleanisDirectory()Gets a value indicating whether the entry represents a directory.StringtoString()Returns string representation of the instance of theWimEntryclass.
-
-
-
Method Detail
-
getArchive
public final WimArchive getArchive()
Gets the archive the entry belongs to.
- Returns:
- the archive the entry belongs to
-
getImage
public final WimImage getImage()
Gets the image the entry belongs to.
- Returns:
- the image the entry belongs to
-
getParent
public final WimDirectoryEntry getParent()
Gets the parent directory the entry belongs to.
- Returns:
- the parent directory the entry belongs to
-
getName
public final String getName()
Gets the name of the entry within the image.
- Returns:
- the name of the entry within the image
-
getShortName
public final String getShortName()
Gets the short name of the entry within the image.
- Returns:
- the short name of the entry within the image
-
getFullPath
public final String getFullPath()
Gets the full path of the entry within the image.
- Returns:
- the full path of the entry within the image
-
getChangeTime
public final Date getChangeTime()
Gets the last time the file or directory was changed.
- Returns:
- the last time the file or directory was changed
-
getCreationTime
public final Date getCreationTime()
Gets the creation time of the file or directory.
- Returns:
- the creation time of the file or directory
-
getLastAccessTime
public final Date getLastAccessTime()
Gets the last access time of the file or directory.
- Returns:
- the last access time of the file or directory
-
getLastWriteTime
@Deprecated public final Date getLastWriteTime()
Deprecated.This method will be removed in a future release. Please use getModificationTime() instead.Gets the modification time of the file or directory.
- Returns:
- the modification time of the file or directory
-
getModificationTime
public final Date getModificationTime()
Gets the modification time of the file or directory.
- Returns:
- the modification time of the file or directory
-
getFileAttributes
public final int getFileAttributes()
Gets the file or directory attributes.
- Returns:
- the file or directory attributes
-
getAlternateDataStreams
public final String[] getAlternateDataStreams()
Gets the names of the alternate data streams for the file or directory.
- Returns:
- the names of the alternate data streams for the file or directory
-
getHardLink
public final long getHardLink()
Gets the hardlink id of the file or directory.
- Returns:
- the hardlink id of the file or directory
-
hasHardLinks
public final boolean hasHardLinks()
Gets whether the file or directory is known by other names.
- Returns:
- whether the file or directory is known by other names
-
isDirectory
public final boolean isDirectory()
Gets a value indicating whether the entry represents a directory.
- Returns:
- a value indicating whether the entry represents a directory
-
-