public class NativeFileSystemView extends java.lang.Object implements FileSystemView
| Constructor and Description |
|---|
NativeFileSystemView(java.lang.String userName)
Constructor - internal do not use directly, use
NativeFileSystemFactory instead |
NativeFileSystemView(java.lang.String userName,
boolean caseInsensitive)
Constructor - internal do not use directly, use
NativeFileSystemFactory instead |
NativeFileSystemView(java.lang.String userName,
java.util.Map<java.lang.String,java.lang.String> roots,
java.lang.String current)
Constructor - internal do not use directly, use
NativeFileSystemFactory instead |
NativeFileSystemView(java.lang.String userName,
java.util.Map<java.lang.String,java.lang.String> roots,
java.lang.String current,
char separator,
boolean caseInsensitive)
Constructor - internal do not use directly, use
NativeFileSystemFactory instead |
| Modifier and Type | Method and Description |
|---|---|
NativeSshFile |
createNativeSshFile(java.lang.String name,
java.io.File file,
java.lang.String userName) |
java.lang.String |
deNormalizeSeparateChar(java.lang.String pathName)
Normalize separate character.
|
SshFile |
getFile(SshFile baseDir,
java.lang.String file)
Get file object.
|
SshFile |
getFile(java.lang.String file)
Get file object.
|
protected SshFile |
getFile(java.lang.String dir,
java.lang.String file) |
FileSystemView |
getNormalizedView()
Return a view of this file system which has a single root
and uses '/' as a file separator.
|
char |
getSeparator() |
java.lang.String |
getUserName() |
protected static java.lang.String |
normalizeRoot(java.lang.String root) |
public NativeFileSystemView(java.lang.String userName)
NativeFileSystemFactory insteadpublic NativeFileSystemView(java.lang.String userName,
boolean caseInsensitive)
NativeFileSystemFactory insteadpublic NativeFileSystemView(java.lang.String userName,
java.util.Map<java.lang.String,java.lang.String> roots,
java.lang.String current)
NativeFileSystemFactory insteadpublic NativeFileSystemView(java.lang.String userName,
java.util.Map<java.lang.String,java.lang.String> roots,
java.lang.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 java.lang.String getUserName()
public char getSeparator()
public SshFile getFile(java.lang.String file)
getFile in interface FileSystemViewfile - The path to the file to getSshFile for the provided pathpublic SshFile getFile(SshFile baseDir, java.lang.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 pathprotected SshFile getFile(java.lang.String dir, java.lang.String file)
public NativeSshFile createNativeSshFile(java.lang.String name, java.io.File file, java.lang.String userName)
public final java.lang.String deNormalizeSeparateChar(java.lang.String pathName)
public FileSystemView getNormalizedView()
FileSystemViewgetNormalizedView in interface FileSystemViewprotected static java.lang.String normalizeRoot(java.lang.String root)
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.