|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.updater.service.resource.FileSystemResource
public abstract class FileSystemResource
File system resource : pattern of files or directories
| Field Summary | |
|---|---|
static int |
DELETE_NOW
Mode of deletion using the standard IO method File.delete |
static int |
DELETE_ON_EXIT
Mode of deletion using the method File.deleteOnExit |
| Constructor Summary | |
|---|---|
FileSystemResource(java.lang.String strRootPath,
java.lang.String strRelativePath)
Constructor |
|
| Method Summary | |
|---|---|
abstract void |
copy(java.lang.String strDestination)
Move file system resources |
abstract void |
delete(int nMode)
Delete file system resources |
java.lang.String |
getFullPath()
Returns the FullPath |
java.lang.String |
getRelativePath()
Returns the ResourcePattern |
java.lang.String |
getRootPath()
Returns the RootPath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DELETE_NOW
public static final int DELETE_ON_EXIT
| Constructor Detail |
|---|
public FileSystemResource(java.lang.String strRootPath,
java.lang.String strRelativePath)
strRootPath - The root path of the resource (webapp node)strRelativePath - The relative path of the resource (within the webapp)| Method Detail |
|---|
public abstract void copy(java.lang.String strDestination)
throws java.io.IOException
strDestination - The new location
java.io.IOException - If an error occurs
public abstract void delete(int nMode)
throws java.io.IOException
nMode - The mode of deletion
java.io.IOException - If an error occurspublic java.lang.String getRootPath()
public java.lang.String getRelativePath()
public java.lang.String getFullPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||