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

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

public class FileResource
extends FileSystemResource

Resource of type File


Field Summary
 
Fields inherited from class fr.paris.lutece.plugins.updater.service.resource.FileSystemResource
DELETE_NOW, DELETE_ON_EXIT
 
Constructor Summary
FileResource(java.lang.String strRootPath, java.lang.String strFilePath)
          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
 

Constructor Detail

FileResource

public FileResource(java.lang.String strRootPath,
                    java.lang.String strFilePath)
Constructor

Parameters:
strRootPath - The root path
strFilePath - The relative file path
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.