|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.plexus.components.io.resources.AbstractPlexusIoResource
Default implementation of PlexusIoResource.
| Field Summary |
| Fields inherited from interface org.codehaus.plexus.components.io.resources.PlexusIoResource |
UNKNOWN_MODIFICATION_DATE, UNKNOWN_RESOURCE_SIZE |
| Constructor Summary | |
AbstractPlexusIoResource()
Creates a new instance with default settings. |
|
AbstractPlexusIoResource(PlexusIoResource plexusIoResource)
Creates a new instance. |
|
| Method Summary | |
long |
getLastModified()
Returns the date, when the resource was last modified, if known. |
java.lang.String |
getName()
Returns the resources name, which may include path components, like directory names, or something like that. |
long |
getSize()
Returns the resources size, if known. |
boolean |
isDirectory()
Returns, whether the FileInfo refers to a directory. |
boolean |
isExisting()
Returns, whether the resource exists. |
boolean |
isFile()
Returns, whether the FileInfo refers to a file. |
void |
setDirectory(boolean isDirectory)
Sets, whether the resource is a directory. |
void |
setExisting(boolean isExisting)
Sets, whether the resource exists. |
void |
setFile(boolean isFile)
Sets, whether the resource is a file. |
void |
setLastModified(long lastModified)
Sets the date, when the resource was last modified. |
void |
setName(java.lang.String name)
Sets the resources name, which may include path components, like directory names, or something like that. |
void |
setSize(long size)
Sets the resources size. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.codehaus.plexus.components.io.resources.PlexusIoResource |
getURL |
| Methods inherited from interface org.codehaus.plexus.components.io.fileselectors.FileInfo |
getContents |
| Constructor Detail |
public AbstractPlexusIoResource()
public AbstractPlexusIoResource(PlexusIoResource plexusIoResource)
| Method Detail |
public void setLastModified(long lastModified)
File.lastModified()public long getLastModified()
PlexusIoResourcePlexusIoResource.UNKNOWN_MODIFICATION_DATE.
getLastModified in interface PlexusIoResourceFile.lastModified()public void setName(java.lang.String name)
File.pathSeparator
public java.lang.String getName()
FileInfoFile.pathSeparator
getName in interface FileInfopublic void setSize(long size)
size - The resources size, if known. Otherwise returns
PlexusIoResource.UNKNOWN_RESOURCE_SIZE.File.length()public long getSize()
PlexusIoResourcePlexusIoResource.UNKNOWN_RESOURCE_SIZE.
getSize in interface PlexusIoResourcepublic void setDirectory(boolean isDirectory)
public boolean isDirectory()
FileInfoFileInfo refers to a directory.
isDirectory in interface FileInfopublic void setExisting(boolean isExisting)
public boolean isExisting()
PlexusIoResource
isExisting in interface PlexusIoResourcepublic void setFile(boolean isFile)
public boolean isFile()
FileInfoFileInfo refers to a file.
isFile in interface FileInfo
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||