public class

RemoteFile

extends RemoteResource
java.lang.Object
   ↳ net.schmizz.sshj.sftp.RemoteResource
     ↳ net.schmizz.sshj.sftp.RemoteFile

Summary

Nested Classes
class RemoteFile.RemoteFileInputStream  
class RemoteFile.RemoteFileOutputStream  
[Expand]
Inherited Fields
From class net.schmizz.sshj.sftp.RemoteResource
Public Constructors
RemoteFile(Requester requester, String path, String handle)
Public Methods
FileAttributes fetchAttributes()
int getOutgoingPacketOverhead()
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)
Protected Methods
Promise<ResponseSFTPException> asyncWrite(long fileOffset, byte[] data, int off, int len)
[Expand]
Inherited Methods
From class net.schmizz.sshj.sftp.RemoteResource
From class java.lang.Object
From interface java.io.Closeable

Public Constructors

public RemoteFile (Requester requester, String path, String handle)

Parameters
requester
path
handle

Public Methods

public FileAttributes fetchAttributes ()

Throws
IOException

public int getOutgoingPacketOverhead ()

public long length ()

Throws
IOException

public int read (long fileOffset, byte[] to, int offset, int len)

Parameters
fileOffset
to
offset
len
Throws
IOException

public void setAttributes (FileAttributes attrs)

Parameters
attrs
Throws
IOException

public void setLength (long len)

Parameters
len
Throws
IOException

public void write (long fileOffset, byte[] data, int off, int len)

Parameters
fileOffset
data
off
len
Throws
IOException

Protected Methods

protected Promise<ResponseSFTPException> asyncWrite (long fileOffset, byte[] data, int off, int len)

Parameters
fileOffset
data
off
len
Throws
IOException