|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileService
The methods in this interface are the public face of FileService They can be used by any remote object to access remote files. For example, the ToolAgent uses this class to copy the tool output files to the master machine. Objects of this class are created via the FileAgent.
FileAgent
Method Summary | |
---|---|
void |
close()
Close the current file. |
byte[] |
read()
This method is responsible for reading a file. |
byte[] |
readBytes(int count)
This method is responsible for writing to a file. |
void |
write(byte[] buffer)
This method is responsible for writing to a file. |
void |
writeBytes(byte[] buffer,
int begin,
int end)
This method is responsible for writing to a file. |
Method Detail |
---|
byte[] read() throws RemoteException, FileServiceException
RemoteException
- A communications error occurred
FileServiceException
- Error opening the filebyte[] readBytes(int count) throws RemoteException, FileServiceException
count
- no. of bytes to read
RemoteException
- A communications error occurred
FileServiceException
- Error opening the file *void write(byte[] buffer) throws RemoteException, FileServiceException
buffer
- to write
RemoteException
- A communications error occurred
FileServiceException
- Error opening the filevoid writeBytes(byte[] buffer, int begin, int end) throws RemoteException, FileServiceException
buffer
- to writebegin
- staring indexend
- ending index
RemoteException
- A communications error occurred
FileServiceException
- Error opening the filevoid close() throws RemoteException
RemoteException
- A communications error occurred.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |