twcsckernel.projectbase.io
Class ReaderFactoryImpl
java.lang.Object
twcsckernel.projectbase.io.ReaderFactoryImpl
- All Implemented Interfaces:
- java.rmi.Remote, ReaderFactory
public class ReaderFactoryImpl
- extends java.lang.Object
- implements ReaderFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReaderFactoryImpl
public ReaderFactoryImpl(FileSecurityManager defaultSecManager)
throws java.lang.NullPointerException
- Throws:
java.lang.NullPointerException
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.