twcsckernel.projectbase.io
Class RemoteFileSystemImpl

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

public class RemoteFileSystemImpl
extends java.lang.Object
implements RemoteFileSystem


Field Summary
 FileSecurityManager defaultSecurityManager
           
 FileFactoryImpl fileFactory
           
 ReaderFactoryImpl readerFactory
           
 WriterFactoryImpl writerFactory
           
 
Constructor Summary
RemoteFileSystemImpl(FileSecurityManager manager)
           
 
Method Summary
 boolean addFilesystemChangeListener(LocalFsChangeListener fsChL)
           
 RemoteFileInputStream newFileInputStream(java.lang.String filePath)
          Metoda tworzy nowy zdalny strumień wejścia.
 RemoteFileOutputStream newFileOutputStream(java.lang.String filePath)
          Metoda tworzy nowy zdalny strumień wyjścia.
 RemoteFile newRemoteFile(java.lang.String filePath)
          Tworzy nowy obiekt pliku zdalnego na serwerze o podanej ścieżce.
 void releaseAllResources()
           
 boolean removeFilesystemChangeListener(LocalFsChangeListener fsChL)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

readerFactory

public final ReaderFactoryImpl readerFactory

writerFactory

public final WriterFactoryImpl writerFactory

fileFactory

public final FileFactoryImpl fileFactory

defaultSecurityManager

public final FileSecurityManager defaultSecurityManager
Constructor Detail

RemoteFileSystemImpl

public RemoteFileSystemImpl(FileSecurityManager manager)
Method Detail

newRemoteFile

public RemoteFile newRemoteFile(java.lang.String filePath)
                         throws java.rmi.RemoteException,
                                java.lang.SecurityException,
                                java.io.IOException
Description copied from interface: RemoteFileSystem
Tworzy nowy obiekt pliku zdalnego na serwerze o podanej ścieżce.

Specified by:
newRemoteFile in interface RemoteFileSystem
Parameters:
filePath - ścieżka pliku zdalnego na serwerze (licząc od katalogu root użytkownika)
Returns:
obiekt pliku zdalnego
Throws:
java.rmi.RemoteException
java.lang.SecurityException - - próba dostępu do zabronionego lub nieprawidłowego pliku
java.io.IOException - - wyjątek jest rzucany jeśli serwer nie może utworzyć ścieżki kanonicznej dla podanej ścieżki

newFileOutputStream

public RemoteFileOutputStream newFileOutputStream(java.lang.String filePath)
                                           throws java.rmi.RemoteException,
                                                  java.io.FileNotFoundException,
                                                  java.lang.SecurityException
Description copied from interface: RemoteFileSystem
Metoda tworzy nowy zdalny strumień wyjścia.

Specified by:
newFileOutputStream in interface RemoteFileSystem
Parameters:
filePath - - ścieżka pliku na serwerze sprawdzana przez odpowiedni manager bezpieczeństwa użytkownika
Returns:
- zdalny strumień wyjścia
Throws:
java.rmi.RemoteException - - standardowy wyjątek zdalny
java.io.FileNotFoundException - - nie odnaleziono pliku (podana ściezka jest katalogiem)
java.lang.SecurityException - - próba dostępu do zabronionego lub nieprawidłowego pliku

newFileInputStream

public RemoteFileInputStream newFileInputStream(java.lang.String filePath)
                                         throws java.rmi.RemoteException,
                                                java.io.FileNotFoundException,
                                                java.lang.SecurityException
Description copied from interface: RemoteFileSystem
Metoda tworzy nowy zdalny strumień wejścia.

Specified by:
newFileInputStream in interface RemoteFileSystem
Parameters:
filePath - - ścieżka pliku na serwerze sprawdzana przez odpowiedni manager bezpieczeństwa użytkownika
Returns:
- zdalny strumień wejścia
Throws:
java.rmi.RemoteException - - standardowy wyjątek zdalny
java.io.FileNotFoundException - - nie odnaleziono pliku
java.lang.SecurityException - - próba dostępu do zabronionego lub nieprawidłowego pliku/katalogu

addFilesystemChangeListener

public boolean addFilesystemChangeListener(LocalFsChangeListener fsChL)

removeFilesystemChangeListener

public boolean removeFilesystemChangeListener(LocalFsChangeListener fsChL)

releaseAllResources

public void releaseAllResources()


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