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:
- każda metoda odwołuje się do pliku, który jest utworzony po stronie
serwerowej i przechowywany w mapie, której kluczem jest identyfikator typu
Integer.Pierwszym parametrem każdej metody jest zatem ten identyfikator,
- jesli metoda klasy File rzuca wyjatek
SecurityException,ItemNotFoundException, to analogiczne metody
rzucają wyjątek RMISecurityException,ItemNotFoundException,
- sciezka absolutna/kanoniczna jest podawana od katalogu root wskazanego w
implementacji tego interfejsu (powinien być to katalog root zalogowanego
użytkownika)
- Author:
- VMD Group
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.