|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.schmizz.sshj.sftp.RemoteResource
net.schmizz.sshj.sftp.RemoteFile
public class RemoteFile
| Nested Class Summary | |
|---|---|
class |
RemoteFile.RemoteFileInputStream
|
class |
RemoteFile.RemoteFileOutputStream
|
| Field Summary |
|---|
| Fields inherited from class net.schmizz.sshj.sftp.RemoteResource |
|---|
handle, log, path, requester |
| Constructor Summary | |
|---|---|
RemoteFile(Requester requester,
String path,
String handle)
|
|
| Method Summary | |
|---|---|
FileAttributes |
fetchAttributes()
|
RemoteFile.RemoteFileInputStream |
getInputStream()
|
int |
getOutgoingPacketOverhead()
|
RemoteFile.RemoteFileOutputStream |
getOutputStream()
|
long |
length()
|
int |
read(long fileOffset,
byte[] to,
int offset,
int len)
|
void |
setAttributes(FileAttributes attrs)
|
void |
setLength(long len)
|
void |
write(long fileOffset,
byte[] data,
int off,
int len)
|
| Methods inherited from class net.schmizz.sshj.sftp.RemoteResource |
|---|
close, getPath, newRequest, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteFile(Requester requester,
String path,
String handle)
| Method Detail |
|---|
public RemoteFile.RemoteFileInputStream getInputStream()
public RemoteFile.RemoteFileOutputStream getOutputStream()
public FileAttributes fetchAttributes()
throws IOException
IOException
public long length()
throws IOException
IOException
public void setLength(long len)
throws IOException
IOException
public int read(long fileOffset,
byte[] to,
int offset,
int len)
throws IOException
IOException
public void write(long fileOffset,
byte[] data,
int off,
int len)
throws IOException
IOException
public void setAttributes(FileAttributes attrs)
throws IOException
IOExceptionpublic int getOutgoingPacketOverhead()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||