Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
com.sshtools.daemon.platform.NativeFileSystemProvider
public abstract class NativeFileSystemProvider
extends java.lang.Object
Field Summary | |
static int | |
static int | |
static int | |
static int | |
static int | |
static int |
Method Summary | |
abstract void |
|
abstract void |
|
abstract boolean |
|
abstract String |
|
abstract String |
|
abstract FileAttributes |
|
abstract FileAttributes |
|
static NativeFileSystemProvider | |
abstract String |
|
abstract boolean |
|
abstract byte[] |
|
abstract byte[] |
|
abstract SftpFile[] |
|
abstract byte[] |
|
abstract SftpFile |
|
abstract void |
|
abstract void |
|
abstract void |
|
abstract void |
|
abstract void |
|
abstract void |
|
abstract void |
|
public static final int OPEN_APPEND
- Field Value:
- 4
public static final int OPEN_CREATE
- Field Value:
- 8
public static final int OPEN_EXCLUSIVE
- Field Value:
- 32
public static final int OPEN_READ
- Field Value:
- 1
public static final int OPEN_TRUNCATE
- Field Value:
- 16
public static final int OPEN_WRITE
- Field Value:
- 2
public abstract void closeFile(byte[] handle) throws InvalidHandleException, IOException
- Parameters:
handle
-
- Throws:
InvalidHandleException
-
public abstract void createSymbolicLink(String link, String target) throws UnsupportedFileOperationException, FileNotFoundException, IOException, PermissionDeniedException
- Parameters:
link
-target
-
public abstract boolean fileExists(String path) throws IOException
- Parameters:
path
-
- Returns:
public abstract String getCanonicalPath(String path) throws IOException, FileNotFoundException
- Parameters:
path
-
- Returns:
public abstract String getDefaultPath(String username) throws FileNotFoundException
public abstract FileAttributes getFileAttributes(String path) throws IOException, FileNotFoundException
- Parameters:
path
-
- Returns:
public abstract FileAttributes getFileAttributes(byte[] handle) throws IOException, InvalidHandleException
- Parameters:
handle
-
- Returns:
- Throws:
InvalidHandleException
-
public abstract String getRealPath(String path) throws FileNotFoundException
- Parameters:
path
-
- Returns:
public abstract boolean makeDirectory(String path) throws PermissionDeniedException, FileNotFoundException, IOException
- Parameters:
path
-
- Returns:
- Throws:
PermissionDeniedException
-
public abstract byte[] openDirectory(String path) throws PermissionDeniedException, FileNotFoundException, IOException
- Parameters:
path
-
- Returns:
- Throws:
PermissionDeniedException
-
public abstract byte[] openFile(String path, UnsignedInteger32 flags, FileAttributes attrs) throws PermissionDeniedException, FileNotFoundException, IOException
- Parameters:
path
-flags
-attrs
-
- Returns:
- Throws:
PermissionDeniedException
-
public abstract SftpFile[] readDirectory(byte[] handle) throws InvalidHandleException, EOFException, IOException
- Parameters:
handle
-
- Returns:
- Throws:
InvalidHandleException
-
public abstract byte[] readFile(byte[] handle, UnsignedInteger64 offset, UnsignedInteger32 len) throws InvalidHandleException, EOFException, IOException
- Parameters:
handle
-offset
-len
-
- Returns:
- Throws:
InvalidHandleException
-
public abstract SftpFile readSymbolicLink(String path) throws UnsupportedFileOperationException, FileNotFoundException, IOException, PermissionDeniedException
- Parameters:
path
-
- Returns:
public abstract void removeDirectory(String path) throws PermissionDeniedException, FileNotFoundException, IOException
- Parameters:
path
-
- Throws:
PermissionDeniedException
-
public abstract void removeFile(String path) throws PermissionDeniedException, IOException, FileNotFoundException
- Parameters:
path
-
- Throws:
PermissionDeniedException
-
public abstract void renameFile(String oldpath, String newpath) throws PermissionDeniedException, FileNotFoundException, IOException
- Parameters:
oldpath
-newpath
-
- Throws:
PermissionDeniedException
-
public abstract void setFileAttributes(String path, FileAttributes attrs) throws PermissionDeniedException, IOException, FileNotFoundException
- Parameters:
path
-attrs
-
- Throws:
PermissionDeniedException
-
public abstract void setFileAttributes(byte[] handle, FileAttributes attrs) throws PermissionDeniedException, IOException, InvalidHandleException
- Parameters:
handle
-attrs
-
- Throws:
PermissionDeniedException
-InvalidHandleException
-
public abstract void verifyPermissions(String username, String path, String permissions) throws PermissionDeniedException, FileNotFoundException, IOException
- Parameters:
username
-path
-permissions
-
- Throws:
PermissionDeniedException
-
public abstract void writeFile(byte[] handle, UnsignedInteger64 offset, byte[] data, int off, int len) throws InvalidHandleException, IOException
- Parameters:
handle
-offset
-data
-off
-len
-
- Throws:
InvalidHandleException
-