org.mule.util.file
Class TransactedFileSession
java.lang.Object
org.mule.util.xa.DefaultXASession
org.mule.util.file.TransactedFileSession
- All Implemented Interfaces:
- FileSession, XAResource
- public class TransactedFileSession
- extends DefaultXASession
- implements FileSession
todo document
- Version:
- $Revision: 3798 $
- Author:
- Ross Mason
| Fields inherited from interface javax.transaction.xa.XAResource |
TMENDRSCAN, TMFAIL, TMJOIN, TMNOFLAGS, TMONEPHASE, TMRESUME, TMSTARTRSCAN, TMSUCCESS, TMSUSPEND, XA_OK, XA_RDONLY |
| 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 |
TransactedFileSession
public TransactedFileSession(AbstractXAResourceManager resourceManager)
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-2006 MuleSource Inc.. All Rights Reserved.