public class NativeFileSystemView extends Object implements FileSystemView
| Modifier and Type | Class and Description |
|---|---|
static class |
NativeFileSystemView.UnsupportedAttributePolicy |
| Constructor and Description |
|---|
NativeFileSystemView(String userName)
Constructor - internal do not use directly, use
NativeFileSystemFactory instead |
NativeFileSystemView(String userName,
boolean caseInsensitive)
Constructor - internal do not use directly, use
NativeFileSystemFactory instead |
NativeFileSystemView(String userName,
Map<String,String> roots,
String current)
Constructor - internal do not use directly, use
NativeFileSystemFactory instead |
NativeFileSystemView(String userName,
Map<String,String> roots,
String current,
char separator,
boolean caseInsensitive)
Constructor - internal do not use directly, use
NativeFileSystemFactory instead |
| Modifier and Type | Method and Description |
|---|---|
NativeSshFile |
createNativeSshFile(String name,
File file,
String userName) |
String |
deNormalizeSeparateChar(String pathName)
Normalize separate character.
|
SshFile |
getFile(SshFile baseDir,
String file)
Get file object.
|
SshFile |
getFile(String file)
Get file object.
|
protected SshFile |
getFile(String dir,
String file) |
FileSystemView |
getNormalizedView()
Return a view of this file system which has a single root
and uses '/' as a file separator.
|
char |
getSeparator() |
NativeFileSystemView.UnsupportedAttributePolicy |
getUnsupportedAttributePolicy() |
String |
getUserName() |
protected static String |
normalizeRoot(String root) |
void |
setUnsupportedAttributePolicy(NativeFileSystemView.UnsupportedAttributePolicy unsupportedAttributePolicy) |
public NativeFileSystemView(String userName)
NativeFileSystemFactory insteadpublic NativeFileSystemView(String userName, boolean caseInsensitive)
NativeFileSystemFactory insteadpublic NativeFileSystemView(String userName, Map<String,String> roots, String current)
NativeFileSystemFactory insteadpublic NativeFileSystemView(String userName, Map<String,String> roots, String current, char separator, boolean caseInsensitive)
NativeFileSystemFactory insteaduserName - the user nameroots - known root mapping, key is the virtual root name, value is the physical filecurrent - the virtual current dirpublic NativeFileSystemView.UnsupportedAttributePolicy getUnsupportedAttributePolicy()
public void setUnsupportedAttributePolicy(NativeFileSystemView.UnsupportedAttributePolicy unsupportedAttributePolicy)
public String getUserName()
public char getSeparator()
public SshFile getFile(String file)
getFile in interface FileSystemViewfile - The path to the file to getSshFile for the provided pathpublic SshFile getFile(SshFile baseDir, String file)
FileSystemViewgetFile in interface FileSystemViewbaseDir - The reference towards which the file should be resolvedfile - The path to the file to getSshFile for the provided pathpublic NativeSshFile createNativeSshFile(String name, File file, String userName)
public final String deNormalizeSeparateChar(String pathName)
public FileSystemView getNormalizedView()
FileSystemViewgetNormalizedView in interface FileSystemViewCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.