org.mule.util.file
Interface FileSession

All Known Implementing Classes:
TransactedFileSession

public interface FileSession


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

void begin()
           throws ResourceManagerException
Throws:
ResourceManagerException

commit

void commit()
            throws ResourceManagerException
Throws:
ResourceManagerException

rollback

void rollback()
              throws ResourceManagerException
Throws:
ResourceManagerException

openInputStream

FileInputStream openInputStream(File f)
                                throws IOException
Throws:
IOException

openOutputStream

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

openOutputStream

FileOutputStream openOutputStream(File f)
                                  throws IOException
Throws:
IOException

mkdir

boolean mkdir(File f)
              throws IOException
Throws:
IOException

openRandomAccess

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

delete

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

Throws:
IOException

copy

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

rename

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


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