com.maverick.sshd
Class SftpFile

java.lang.Object
  extended bycom.maverick.sshd.SftpFile

public class SftpFile
extends java.lang.Object

Represents an SFTP file object.

Author:
Lee David Painter

Constructor Summary
SftpFile(java.lang.String path)
          Creates a new SftpFile object.
SftpFile(java.lang.String path, SftpFileAttributes attrs)
          Creates a new SftpFile object.
 
Method Summary
 java.lang.String getAbsolutePath()
          Get the absolute path
 SftpFileAttributes getAttributes()
          Get the files attributes.
 java.lang.String getFilename()
          Get the filename.
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SftpFile

public SftpFile(java.lang.String path,
                SftpFileAttributes attrs)
Creates a new SftpFile object.

IMPORTANT: Each SftpFile object should be initialized with the relative path of the file when used in NativeFileSystemProvider.readDirectory(byte[]). For all other uses an absolute path is required.

Parameters:
path -
attrs -

SftpFile

public SftpFile(java.lang.String path)
Creates a new SftpFile object.

IMPORTANT: Each SftpFile object should be initialized with the relative path of the file when used in NativeFileSystemProvider.readDirectory(byte[]). For all other uses an absolute path is required.

Parameters:
path -
Method Detail

hashCode

public int hashCode()

getFilename

public java.lang.String getFilename()
Get the filename.

Returns:
String

getAttributes

public SftpFileAttributes getAttributes()
Get the files attributes.

Returns:
SftpFileAttributes

getAbsolutePath

public java.lang.String getAbsolutePath()
Get the absolute path

Returns:
String


Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.