twcsckernel.projectbase.common
Interface FileFactory

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
FileFactoryImpl

public interface FileFactory
extends java.rmi.Remote

Interfejs zdalny zawierający metody analogiczne do metod klasy java.io.File. Sposób ich działania, parametry, wyniki oraz wyjątki są również analogiczne do metod klasy File. Wspólne różnice między metodami z klasy File a metodami tego interfejsu są następujące:

Author:
VMD Group

Method Summary
 boolean canRead(int fileID)
           
 boolean canWrite(int fileID)
           
 boolean createNewFile(int fileID)
           
 boolean delete(int fileID)
           
 boolean disposeFileHandle(int fileID)
           
 boolean exists(int fileID)
           
 FileDescriptor getDescriptor(int fileID)
           
 java.lang.String getName(int fileID)
           
 java.lang.String getParent(int fileID)
           
 java.lang.String getPath(int fileID)
           
 java.lang.String getPathSeparator()
           
 char getPathSeparatorChar()
           
 java.lang.String getSeparator()
           
 char getSeparatorChar()
           
 boolean isDirectory(int fileID)
           
 boolean isFile(int fileID)
           
 boolean isHidden(int fileID)
           
 long lastModified(int fileID)
           
 long length(int fileID)
           
 FileDescriptor[] list(int fileID)
           
 boolean mkdir(int fileID)
           
 boolean mkdirs(int fileID)
           
 boolean renameTo(int fileID, java.lang.String dest)
           
 boolean setLastModified(int fileID, long time)
           
 boolean setReadOnly(int fileID)
           
 

Method Detail

disposeFileHandle

boolean disposeFileHandle(int fileID)
                          throws java.rmi.RemoteException,
                                 ItemNotFoundException
Throws:
java.rmi.RemoteException
ItemNotFoundException

getSeparatorChar

char getSeparatorChar()
                      throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getSeparator

java.lang.String getSeparator()
                              throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getPathSeparatorChar

char getPathSeparatorChar()
                          throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getPathSeparator

java.lang.String getPathSeparator()
                                  throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getName

java.lang.String getName(int fileID)
                         throws java.rmi.RemoteException,
                                java.lang.SecurityException,
                                ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

getParent

java.lang.String getParent(int fileID)
                           throws java.rmi.RemoteException,
                                  java.lang.SecurityException,
                                  ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

getPath

java.lang.String getPath(int fileID)
                         throws java.rmi.RemoteException,
                                java.lang.SecurityException,
                                ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

canRead

boolean canRead(int fileID)
                throws java.rmi.RemoteException,
                       java.lang.SecurityException,
                       ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

canWrite

boolean canWrite(int fileID)
                 throws java.rmi.RemoteException,
                        java.lang.SecurityException,
                        ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

exists

boolean exists(int fileID)
               throws java.rmi.RemoteException,
                      java.lang.SecurityException,
                      ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

isDirectory

boolean isDirectory(int fileID)
                    throws java.rmi.RemoteException,
                           java.lang.SecurityException,
                           ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

isFile

boolean isFile(int fileID)
               throws java.rmi.RemoteException,
                      java.lang.SecurityException,
                      ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

isHidden

boolean isHidden(int fileID)
                 throws java.rmi.RemoteException,
                        java.lang.SecurityException,
                        ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

lastModified

long lastModified(int fileID)
                  throws java.rmi.RemoteException,
                         java.lang.SecurityException,
                         ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

length

long length(int fileID)
            throws java.rmi.RemoteException,
                   java.lang.SecurityException,
                   ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

createNewFile

boolean createNewFile(int fileID)
                      throws java.rmi.RemoteException,
                             java.lang.SecurityException,
                             ItemNotFoundException,
                             java.io.IOException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException
java.io.IOException

delete

boolean delete(int fileID)
               throws java.rmi.RemoteException,
                      java.lang.SecurityException,
                      ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

list

FileDescriptor[] list(int fileID)
                      throws java.rmi.RemoteException,
                             java.lang.SecurityException,
                             ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

mkdir

boolean mkdir(int fileID)
              throws java.rmi.RemoteException,
                     java.lang.SecurityException,
                     ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

mkdirs

boolean mkdirs(int fileID)
               throws java.rmi.RemoteException,
                      java.lang.SecurityException,
                      ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

renameTo

boolean renameTo(int fileID,
                 java.lang.String dest)
                 throws java.rmi.RemoteException,
                        java.lang.SecurityException,
                        ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

setLastModified

boolean setLastModified(int fileID,
                        long time)
                        throws java.rmi.RemoteException,
                               java.lang.SecurityException,
                               ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

setReadOnly

boolean setReadOnly(int fileID)
                    throws java.rmi.RemoteException,
                           java.lang.SecurityException,
                           ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException

getDescriptor

FileDescriptor getDescriptor(int fileID)
                             throws java.rmi.RemoteException,
                                    java.lang.SecurityException,
                                    ItemNotFoundException
Throws:
java.rmi.RemoteException
java.lang.SecurityException
ItemNotFoundException


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