org.mule.util.file
Interface FileSession

All Known Implementing Classes:
TransactedFileSession

public interface FileSession

Version:
$Revision: 7976 $
Author:
Guillaume Nodet

Method Summary
 void begin()
           
 void commit()
           
 void copy(File source, File dest)
           
 void delete(File f)
          Delete the given file.
 boolean mkdir(File f)
           
 FileInputStream openInputStream(File f)
           
 FileOutputStream openOutputStream(File f)
           
 FileOutputStream openOutputStream(File f, boolean append)
           
 RandomAccessFile openRandomAccess(File f, String mode)
           
 void rename(File source, File dest)
           
 void rollback()
           
 

Method Detail

begin

public void begin()
           throws ResourceManagerException
Throws:
ResourceManagerException

commit

public void commit()
            throws ResourceManagerException
Throws:
ResourceManagerException

rollback

public void rollback()
              throws ResourceManagerException
Throws:
ResourceManagerException

openInputStream

public FileInputStream openInputStream(File f)
                                throws IOException
Throws:
IOException

openOutputStream

public FileOutputStream openOutputStream(File f,
                                         boolean append)
                                  throws IOException
Throws:
IOException

openOutputStream

public FileOutputStream openOutputStream(File f)
                                  throws IOException
Throws:
IOException

mkdir

public boolean mkdir(File f)
              throws IOException
Throws:
IOException

openRandomAccess

public RandomAccessFile openRandomAccess(File f,
                                         String mode)
                                  throws IOException
Throws:
IOException

delete

public void delete(File f)
            throws IOException
Delete the given file.

Throws:
IOException

copy

public void copy(File source,
                 File dest)
          throws IOException
Throws:
IOException

rename

public void rename(File source,
                   File dest)
            throws IOException
Throws:
IOException


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.