public class NativeSshFileNio extends NativeSshFile
SshFile.Attribute, SshFile.Permissionfile, fileName, LOG, nativeFileSystemView, userName| Constructor and Description |
|---|
NativeSshFileNio(NativeFileSystemView nativeFileSystemView,
String fileName,
File file,
String userName)
Constructor, internal do not use directly.
|
| Modifier and Type | Method and Description |
|---|---|
OutputStream |
createOutputStream(long offset)
Create output stream for writing.
|
void |
createSymbolicLink(SshFile destination) |
boolean |
doesExist()
Does this file exists?
|
Map<SshFile.Attribute,Object> |
getAttributes(boolean followLinks) |
String |
readSymbolicLink() |
void |
setAttributes(Map<SshFile.Attribute,Object> attributes) |
create, createInputStream, delete, equals, getAbsolutePath, getAttribute, getLastModified, getName, getNativeFile, getOwner, getParentFile, getPhysicalFile, getPhysicalName, getSize, handleClose, handleUnsupportedAttributes, isDirectory, isExecutable, isFile, isReadable, isRemovable, isWritable, listSshFiles, mkdir, move, normalizeSeparateChar, setAttribute, setLastModified, toString, truncatepublic NativeSshFileNio(NativeFileSystemView nativeFileSystemView, String fileName, File file, String userName)
nativeFileSystemView - public boolean doesExist()
NativeSshFiledoesExist in interface SshFiledoesExist in class NativeSshFileSshFile existspublic Map<SshFile.Attribute,Object> getAttributes(boolean followLinks) throws IOException
getAttributes in interface SshFilegetAttributes in class NativeSshFileIOExceptionpublic void setAttributes(Map<SshFile.Attribute,Object> attributes) throws IOException
setAttributes in interface SshFilesetAttributes in class NativeSshFileIOExceptionpublic String readSymbolicLink() throws IOException
readSymbolicLink in interface SshFilereadSymbolicLink in class NativeSshFileIOExceptionpublic void createSymbolicLink(SshFile destination) throws IOException
createSymbolicLink in interface SshFilecreateSymbolicLink in class NativeSshFileIOExceptionpublic OutputStream createOutputStream(long offset) throws IOException
NativeSshFilecreateOutputStream in interface SshFilecreateOutputStream in class NativeSshFileoffset - The number of bytes at where to start writing.
If the file is not random accessible,
any offset other than zero will throw an exception.OutputStream used to write to the SshFileIOExceptionCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.