org.mule.util.file
Class TransactedFileSession

java.lang.Object
  extended by org.mule.util.xa.DefaultXASession
      extended by org.mule.util.file.TransactedFileSession
All Implemented Interfaces:
XAResource, FileSession

public class TransactedFileSession
extends DefaultXASession
implements FileSession

TODO document


Field Summary
 
Fields inherited from class org.mule.util.xa.DefaultXASession
localContext, localXid, logger, resourceManager
 
Fields inherited from interface javax.transaction.xa.XAResource
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY
 
Constructor Summary
TransactedFileSession(AbstractXAResourceManager resourceManager)
           
 
Method Summary
 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)
           
 
Methods inherited from class org.mule.util.xa.DefaultXASession
begin, commit, commit, end, forget, getResourceManager, getTransactionTimeout, getXAResource, isSameRM, prepare, recover, rollback, rollback, setTransactionTimeout, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.mule.util.file.FileSession
begin, commit, rollback
 

Constructor Detail

TransactedFileSession

public TransactedFileSession(AbstractXAResourceManager resourceManager)
Method Detail

openInputStream

public FileInputStream openInputStream(File f)
                                throws IOException
Specified by:
openInputStream in interface FileSession
Throws:
IOException

openOutputStream

public FileOutputStream openOutputStream(File f,
                                         boolean append)
                                  throws IOException
Specified by:
openOutputStream in interface FileSession
Throws:
IOException

openOutputStream

public FileOutputStream openOutputStream(File f)
                                  throws IOException
Specified by:
openOutputStream in interface FileSession
Throws:
IOException

mkdir

public boolean mkdir(File f)
              throws IOException
Specified by:
mkdir in interface FileSession
Throws:
IOException

openRandomAccess

public RandomAccessFile openRandomAccess(File f,
                                         String mode)
                                  throws IOException
Specified by:
openRandomAccess in interface FileSession
Throws:
IOException

delete

public void delete(File f)
            throws IOException
Description copied from interface: FileSession
Delete the given file.

Specified by:
delete in interface FileSession
Throws:
IOException

copy

public void copy(File source,
                 File dest)
          throws IOException
Specified by:
copy in interface FileSession
Throws:
IOException

rename

public void rename(File source,
                   File dest)
            throws IOException
Specified by:
rename in interface FileSession
Throws:
IOException


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