fr.paris.lutece.plugins.updater.service.resource
Class FilePatternResource

java.lang.Object
  extended by fr.paris.lutece.plugins.updater.service.resource.FileSystemResource
      extended by fr.paris.lutece.plugins.updater.service.resource.FilePatternResource

public class FilePatternResource
extends FileSystemResource


Field Summary
static int PATTERN_PREFIX
          Pattern prefix
 
Fields inherited from class fr.paris.lutece.plugins.updater.service.resource.FileSystemResource
DELETE_NOW, DELETE_ON_EXIT
 
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 fr.paris.lutece.plugins.updater.service.resource.FileSystemResource
getFullPath, getRelativePath, getRootPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PATTERN_PREFIX

public static final int PATTERN_PREFIX
Pattern prefix

See Also:
Constant Field Values
Constructor Detail

FilePatternResource

public FilePatternResource(java.lang.String strRootPath,
                           java.lang.String strFileDirectory,
                           java.lang.String strFilePattern,
                           int nPatternType)
Constructor

Parameters:
strRootPath - The root path
strFileDirectory - The file directory
strFilePattern - The relative file path
nPatternType - The type of pattern (PREFIX, ...)
Method Detail

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.