fr.paris.lutece.plugins.updater.service.resource
Class FilePatternResource
java.lang.Object
fr.paris.lutece.plugins.updater.service.resource.FileSystemResource
fr.paris.lutece.plugins.updater.service.resource.FilePatternResource
public class FilePatternResource
- extends FileSystemResource
|
Constructor Summary |
FilePatternResource(java.lang.String strRootPath,
java.lang.String strFileDirectory,
java.lang.String strFilePattern,
int nPatternType)
Constructor |
|
Method Summary |
void |
copy(java.lang.String strDestination)
Move file system resources |
void |
delete(int nMode)
Delete file system resources |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PATTERN_PREFIX
public static final int PATTERN_PREFIX
- Pattern prefix
- See Also:
- Constant Field Values
FilePatternResource
public FilePatternResource(java.lang.String strRootPath,
java.lang.String strFileDirectory,
java.lang.String strFilePattern,
int nPatternType)
- Constructor
- Parameters:
strRootPath - The root pathstrFileDirectory - The file directorystrFilePattern - The relative file pathnPatternType - The type of pattern (PREFIX, ...)
copy
public void copy(java.lang.String strDestination)
throws java.io.IOException
- Move file system resources
- Specified by:
copy in class FileSystemResource
- Parameters:
strDestination - The new location
- Throws:
java.io.IOException - If an error occurs
delete
public void delete(int nMode)
throws java.io.IOException
- Delete file system resources
- Specified by:
delete in class FileSystemResource
- Parameters:
nMode - The mode of deletion
- Throws:
java.io.IOException - If an error occurs
Copyright © 2009 Mairie de Paris. All Rights Reserved.