Package org.codehaus.plexus.archiver.zip
Class AbstractZipUnArchiver.ZipEntryFileInfo
- java.lang.Object
-
- org.codehaus.plexus.archiver.zip.AbstractZipUnArchiver.ZipEntryFileInfo
-
- All Implemented Interfaces:
org.codehaus.plexus.components.io.fileselectors.FileInfo
,org.codehaus.plexus.components.io.functions.ContentSupplier
,org.codehaus.plexus.components.io.functions.NameSupplier
,org.codehaus.plexus.components.io.functions.SizeSupplier
,org.codehaus.plexus.components.io.resources.PlexusIoResource
- Enclosing class:
- AbstractZipUnArchiver
private static class AbstractZipUnArchiver.ZipEntryFileInfo extends java.lang.Object implements org.codehaus.plexus.components.io.resources.PlexusIoResource
-
-
Constructor Summary
Constructors Constructor Description ZipEntryFileInfo(org.apache.commons.compress.archivers.zip.ZipFile zipFile, org.apache.commons.compress.archivers.zip.ZipArchiveEntry zipEntry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.InputStream
getContents()
long
getLastModified()
java.lang.String
getName()
long
getSize()
java.net.URL
getURL()
boolean
isDirectory()
boolean
isExisting()
boolean
isFile()
boolean
isSymbolicLink()
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceorg.codehaus.plexus.components.io.fileselectors.FileInfo
- Specified by:
getName
in interfaceorg.codehaus.plexus.components.io.functions.NameSupplier
-
isDirectory
public boolean isDirectory()
- Specified by:
isDirectory
in interfaceorg.codehaus.plexus.components.io.fileselectors.FileInfo
- Specified by:
isDirectory
in interfaceorg.codehaus.plexus.components.io.resources.PlexusIoResource
-
isFile
public boolean isFile()
- Specified by:
isFile
in interfaceorg.codehaus.plexus.components.io.fileselectors.FileInfo
- Specified by:
isFile
in interfaceorg.codehaus.plexus.components.io.resources.PlexusIoResource
-
isSymbolicLink
public boolean isSymbolicLink()
- Specified by:
isSymbolicLink
in interfaceorg.codehaus.plexus.components.io.fileselectors.FileInfo
-
getContents
@Nonnull public java.io.InputStream getContents() throws java.io.IOException
- Specified by:
getContents
in interfaceorg.codehaus.plexus.components.io.functions.ContentSupplier
- Specified by:
getContents
in interfaceorg.codehaus.plexus.components.io.fileselectors.FileInfo
- Specified by:
getContents
in interfaceorg.codehaus.plexus.components.io.resources.PlexusIoResource
- Throws:
java.io.IOException
-
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interfaceorg.codehaus.plexus.components.io.resources.PlexusIoResource
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceorg.codehaus.plexus.components.io.resources.PlexusIoResource
- Specified by:
getSize
in interfaceorg.codehaus.plexus.components.io.functions.SizeSupplier
-
getURL
public java.net.URL getURL() throws java.io.IOException
- Specified by:
getURL
in interfaceorg.codehaus.plexus.components.io.resources.PlexusIoResource
- Throws:
java.io.IOException
-
isExisting
public boolean isExisting()
- Specified by:
isExisting
in interfaceorg.codehaus.plexus.components.io.resources.PlexusIoResource
-
-