Class PlexusIoVirtualFileResource
java.lang.Object
org.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
org.codehaus.plexus.archiver.resources.PlexusIoVirtualFileResource
- 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.ResourceAttributeSupplier
,org.codehaus.plexus.components.io.functions.SizeSupplier
,org.codehaus.plexus.components.io.resources.PlexusIoResource
- Direct Known Subclasses:
PlexusIoVirtualSymlinkResource
public class PlexusIoVirtualFileResource
extends org.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
implements org.codehaus.plexus.components.io.functions.ResourceAttributeSupplier
A file resource that does not necessarily exist (anywhere).
-
Field Summary
Fields inherited from interface org.codehaus.plexus.components.io.resources.PlexusIoResource
UNKNOWN_MODIFICATION_DATE, UNKNOWN_RESOURCE_SIZE
-
Constructor Summary
-
Method Summary
Methods inherited from class org.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
getName
-
Constructor Details
-
PlexusIoVirtualFileResource
-
-
Method Details
-
getName
-
getFile
Returns the resources file. -
getContents
- 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:
IOException
-
getURL
- Specified by:
getURL
in interfaceorg.codehaus.plexus.components.io.resources.PlexusIoResource
- Throws:
IOException
-
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
- Overrides:
getSize
in classorg.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
-
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
- Overrides:
isDirectory
in classorg.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
-
isExisting
public boolean isExisting()- Specified by:
isExisting
in interfaceorg.codehaus.plexus.components.io.resources.PlexusIoResource
- Overrides:
isExisting
in classorg.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
-
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
- Overrides:
isFile
in classorg.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
-
getAttributes
public org.codehaus.plexus.components.io.attributes.PlexusIoResourceAttributes getAttributes()- Specified by:
getAttributes
in interfaceorg.codehaus.plexus.components.io.functions.ResourceAttributeSupplier
-
getLastModified
public long getLastModified()- Specified by:
getLastModified
in interfaceorg.codehaus.plexus.components.io.resources.PlexusIoResource
- Overrides:
getLastModified
in classorg.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
-
isSymbolicLink
public boolean isSymbolicLink()- Specified by:
isSymbolicLink
in interfaceorg.codehaus.plexus.components.io.fileselectors.FileInfo
- Overrides:
isSymbolicLink
in classorg.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
-