twcsckernel.projectbase.io
Class WriterFactoryImpl

java.lang.Object
  extended by twcsckernel.projectbase.io.WriterFactoryImpl
All Implemented Interfaces:
java.rmi.Remote, WriterFactory

public class WriterFactoryImpl
extends java.lang.Object
implements WriterFactory


Constructor Summary
WriterFactoryImpl(FileSecurityManager defaultSecManager, java.util.Collection<LocalFsChangeListener> listeners)
           
 
Method Summary
 void close(int fileID)
           
 void flush(int fileID)
           
 RemoteFileOutputStream newFileOutputStream(java.lang.String filePath)
           
 RemoteFileOutputStream newFileOutputStream(java.lang.String filePath, FileSecurityManager secManager)
           
 void releaseAllResources()
           
 void write(int fileID, byte[] b)
           
 void write(int fileID, int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriterFactoryImpl

public WriterFactoryImpl(FileSecurityManager defaultSecManager,
                         java.util.Collection<LocalFsChangeListener> listeners)
                  throws java.lang.NullPointerException
Throws:
java.lang.NullPointerException
Method Detail

newFileOutputStream

public RemoteFileOutputStream newFileOutputStream(java.lang.String filePath)
                                           throws java.rmi.RemoteException,
                                                  java.io.FileNotFoundException,
                                                  java.lang.SecurityException
Throws:
java.rmi.RemoteException
java.io.FileNotFoundException
java.lang.SecurityException

newFileOutputStream

public RemoteFileOutputStream newFileOutputStream(java.lang.String filePath,
                                                  FileSecurityManager secManager)
                                           throws java.rmi.RemoteException,
                                                  java.io.FileNotFoundException,
                                                  java.lang.SecurityException
Throws:
java.rmi.RemoteException
java.io.FileNotFoundException
java.lang.SecurityException

write

public void write(int fileID,
                  int b)
           throws java.rmi.RemoteException,
                  java.io.IOException,
                  ItemNotFoundException
Specified by:
write in interface WriterFactory
Throws:
java.rmi.RemoteException
java.io.IOException
ItemNotFoundException

write

public void write(int fileID,
                  byte[] b)
           throws java.rmi.RemoteException,
                  java.io.IOException,
                  ItemNotFoundException
Specified by:
write in interface WriterFactory
Throws:
java.rmi.RemoteException
java.io.IOException
ItemNotFoundException

flush

public void flush(int fileID)
           throws java.rmi.RemoteException,
                  java.io.IOException,
                  ItemNotFoundException
Specified by:
flush in interface WriterFactory
Throws:
java.rmi.RemoteException
java.io.IOException
ItemNotFoundException

close

public void close(int fileID)
           throws java.rmi.RemoteException,
                  java.io.IOException,
                  ItemNotFoundException
Specified by:
close in interface WriterFactory
Throws:
java.rmi.RemoteException
java.io.IOException
ItemNotFoundException

releaseAllResources

public void releaseAllResources()


Copyright © 2005-2006 CS@PUT. All Rights Reserved.