public class NativeFileSystemView extends Object implements FileSystemView
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() |
String |
getUserName() |
protected static String |
normalizeRoot(String root) |
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 String getUserName()
public char getSeparator()
public SshFile getFile(String file)
getFile
in interface FileSystemView
file
- The path to the file to getSshFile
for the provided pathpublic SshFile getFile(SshFile baseDir, String file)
FileSystemView
getFile
in interface FileSystemView
baseDir
- 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()
FileSystemView
getNormalizedView
in interface FileSystemView
Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.