public class RemoteFileSaver_Impl extends UnicastRemoteObject implements RemoteFileSaver
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG |
ref| Constructor and Description |
|---|
RemoteFileSaver_Impl(File file) |
RemoteFileSaver_Impl(File file,
int port) |
RemoteFileSaver_Impl(String path) |
RemoteFileSaver_Impl(String path,
int port) |
RemoteFileSaver_Impl(URL urlProperties) |
RemoteFileSaver_Impl(URL urlProperties,
int port) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendToFile(BytesBlock bytesBlock,
String fileName) |
void |
deleteFile(String fileName)
Deletes the file with name
fileName. |
Object |
loadFile(String fileName,
int offset)
Saves a file from the server in the client
|
void |
saveFile(BytesBlock bytesBlock,
String fileName)
Save the bytes of the BytesBlock in a file.
|
clone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic RemoteFileSaver_Impl(URL urlProperties) throws Exception
Exceptionpublic RemoteFileSaver_Impl(File file, int port) throws Exception
Exceptionpublic RemoteFileSaver_Impl(String path, int port) throws Exception
Exceptionpublic void saveFile(BytesBlock bytesBlock, String fileName) throws Exception
saveFile in interface RemoteFileSaverbytesBlock - Object with the bytes to savefileName - Name of the file (It depends of the implementation)ExceptionRemoteFileSaver_Impl}public void appendToFile(BytesBlock bytesBlock, String fileName) throws Exception
appendToFile in interface RemoteFileSaverExceptionpublic void deleteFile(String fileName) throws Exception
fileName. This parameters is a
path relative to the path specified as parameter in the class
constructor.deleteFile in interface RemoteFileSaverfileName - Name of the file to deleteExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.