public final class WindowsRemoteFile extends Object
| Constructor and Description |
|---|
WindowsRemoteFile(WindowsCredentials bonafides,
String path) |
WindowsRemoteFile(WindowsRemoteFile parent,
String path) |
WindowsRemoteFile(WindowsRemoteFileSystem wrfs,
String path) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyFrom(BufferedInputStream sin)
Copies from sin to this WindowsRemoteFile
|
void |
copyFrom(Collection<String> from) |
void |
copyFrom(File from,
RemoteFileCopyProgress progress) |
void |
copyFrom(String from) |
void |
copyTo(File file)
Copy the remote Windows file to the given File
|
void |
copyTo(File file,
RemoteFileCopyProgress progress)
Copy the remote Windows file to the given File
|
void |
copyTo(WindowsRemoteFile wf) |
void |
createNewFile() |
void |
delete() |
boolean |
exists()
THis returns 3 states:
1.
|
String |
getPath() |
String[] |
list() |
void |
mkdirs() |
void |
mkdirs(boolean force) |
void |
setLastModified(long when) |
public WindowsRemoteFile(WindowsRemoteFile parent, String path) throws WindowsException
WindowsExceptionpublic WindowsRemoteFile(WindowsCredentials bonafides, String path) throws WindowsException
WindowsExceptionpublic WindowsRemoteFile(WindowsRemoteFileSystem wrfs, String path) throws WindowsException
WindowsExceptionpublic final boolean exists()
throws WindowsException
WindowsExceptionpublic final String[] list() throws WindowsException
WindowsExceptionpublic final void createNewFile()
throws WindowsException
WindowsExceptionpublic final void copyTo(WindowsRemoteFile wf) throws WindowsException
WindowsExceptionpublic final void copyTo(File file) throws WindowsException
f - The File that will be created or overwritten with the contents of
this Windows Remote File.WindowsExceptionpublic final void copyTo(File file, RemoteFileCopyProgress progress) throws WindowsException
f - The File that will be created or overwritten with the contents of
this Windows Remote File.progress - The optional callback object that gets called for each
chunk of data that gets copied over the wire. Setting it to null is OK.WindowsExceptionpublic final void delete()
throws WindowsException
WindowsExceptionpublic final void mkdirs()
throws WindowsException
WindowsExceptionpublic final void mkdirs(boolean force)
throws WindowsException
WindowsExceptionpublic final void copyFrom(BufferedInputStream sin) throws WindowsException
sin - the opened stream. It will automatically be closed here.WindowsException - if any errors.public final void copyFrom(File from, RemoteFileCopyProgress progress) throws WindowsException
WindowsExceptionpublic final void copyFrom(Collection<String> from) throws WindowsException
WindowsExceptionpublic final void copyFrom(String from) throws WindowsException
WindowsExceptionpublic final void setLastModified(long when)
throws WindowsException
WindowsExceptionpublic final String getPath()
Copyright © 2019. All rights reserved.