net.schmizz.sshj.sftp
Class RemoteFile
java.lang.Object
net.schmizz.sshj.sftp.RemoteResource
net.schmizz.sshj.sftp.RemoteFile
- All Implemented Interfaces:
- Closeable
public class RemoteFile
- extends RemoteResource
RemoteFile
public RemoteFile(Requester requester,
String path,
String handle)
getInputStream
public RemoteFile.RemoteFileInputStream getInputStream()
getOutputStream
public RemoteFile.RemoteFileOutputStream getOutputStream()
fetchAttributes
public FileAttributes fetchAttributes()
throws IOException
- Throws:
IOException
length
public long length()
throws IOException
- Throws:
IOException
setLength
public void setLength(long len)
throws IOException
- Throws:
IOException
read
public int read(long fileOffset,
byte[] to,
int offset,
int len)
throws IOException
- Throws:
IOException
write
public void write(long fileOffset,
byte[] data,
int off,
int len)
throws IOException
- Throws:
IOException
setAttributes
public void setAttributes(FileAttributes attrs)
throws IOException
- Throws:
IOException
getOutgoingPacketOverhead
public int getOutgoingPacketOverhead()
Copyright © 2009-2012. All Rights Reserved.