org.apache.sshd.server.sftp
Class SftpSubsystem.FileHandle

java.lang.Object
  extended by org.apache.sshd.server.sftp.SftpSubsystem.Handle
      extended by org.apache.sshd.server.sftp.SftpSubsystem.FileHandle
Enclosing class:
SftpSubsystem

protected static class SftpSubsystem.FileHandle
extends SftpSubsystem.Handle


Constructor Summary
SftpSubsystem.FileHandle(SshFile sshFile, int flags)
           
 
Method Summary
 void close()
           
 int getFlags()
           
 int read(byte[] data, long offset)
           
 void write(byte[] data, long offset)
           
 
Methods inherited from class org.apache.sshd.server.sftp.SftpSubsystem.Handle
getFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SftpSubsystem.FileHandle

public SftpSubsystem.FileHandle(SshFile sshFile,
                                int flags)
Method Detail

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.