twcsckernel.projectbase.io
Class ReaderFactoryImpl

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

public class ReaderFactoryImpl
extends java.lang.Object
implements ReaderFactory


Constructor Summary
ReaderFactoryImpl(FileSecurityManager defaultSecManager)
           
 
Method Summary
 int available(int streamID)
           
 void close(int streamID)
           
 RemoteFileInputStream newFileInputStream(java.lang.String filePath)
           
 RemoteFileInputStream newFileInputStream(java.lang.String filePath, FileSecurityManager secManager)
           
 ReadResult read(int streamID)
           
 ReadResult read(int streamID, int len)
           
 void releaseAllResources()
           
 long skip(int streamID, long off)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReaderFactoryImpl

public ReaderFactoryImpl(FileSecurityManager defaultSecManager)
                  throws java.lang.NullPointerException
Throws:
java.lang.NullPointerException
Method Detail

newFileInputStream

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

newFileInputStream

public RemoteFileInputStream newFileInputStream(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

read

public ReadResult read(int streamID)
                throws java.rmi.RemoteException,
                       java.io.IOException,
                       ItemNotFoundException
Specified by:
read in interface ReaderFactory
Throws:
java.rmi.RemoteException
java.io.IOException
ItemNotFoundException

read

public ReadResult read(int streamID,
                       int len)
                throws java.rmi.RemoteException,
                       java.io.IOException,
                       ItemNotFoundException
Specified by:
read in interface ReaderFactory
Throws:
java.rmi.RemoteException
java.io.IOException
ItemNotFoundException

skip

public long skip(int streamID,
                 long off)
          throws java.rmi.RemoteException,
                 java.io.IOException,
                 ItemNotFoundException
Specified by:
skip in interface ReaderFactory
Throws:
java.rmi.RemoteException
java.io.IOException
ItemNotFoundException

available

public int available(int streamID)
              throws java.rmi.RemoteException,
                     java.io.IOException,
                     ItemNotFoundException
Specified by:
available in interface ReaderFactory
Throws:
java.rmi.RemoteException
java.io.IOException
ItemNotFoundException

close

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

releaseAllResources

public void releaseAllResources()


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