org.apache.sshd.server.sftp
Class SftpSubsystem.FileHandle
java.lang.Object
org.apache.sshd.server.sftp.SftpSubsystem.Handle
org.apache.sshd.server.sftp.SftpSubsystem.FileHandle
- Enclosing class:
- SftpSubsystem
protected static class SftpSubsystem.FileHandle
- extends SftpSubsystem.Handle
Method Summary |
void |
close()
|
int |
getFlags()
|
int |
read(byte[] data,
long offset)
|
void |
write(byte[] data,
long offset)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SftpSubsystem.FileHandle
public SftpSubsystem.FileHandle(SshFile sshFile,
int flags)
getFlags
public int getFlags()
read
public int read(byte[] data,
long offset)
throws IOException
- Throws:
IOException
write
public void write(byte[] data,
long offset)
throws IOException
- Throws:
IOException
close
public void close()
throws IOException
- Overrides:
close
in class SftpSubsystem.Handle
- Throws:
IOException
Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.