public class FsRoot extends VirtualDirectoryImpl
VirtualFile.PropName
EMPTY_ARRAY
PROP_ENCODING, PROP_HIDDEN, PROP_NAME, PROP_SYMLINK_TARGET, PROP_WRITABLE
EVER_CHANGED, NEVER_CHANGED
Constructor and Description |
---|
FsRoot(int id,
int nameId,
VfsData vfsData,
NewVirtualFileSystem fs,
java.lang.String pathBeforeSlash) |
Modifier and Type | Method and Description |
---|---|
protected char [] |
appendPathOnFileSystem(int pathLength,
int[] position) |
java.lang.String |
getPath()
Gets the path of this file.
|
java.lang.String |
getUrl()
Returns the URL of this file.
|
void |
setNewName(java.lang.String newName) |
void |
setParent(VirtualFile newParent) |
addChild, allChildrenLoaded, changeUserMap, contentsToByteArray, createAndAddChildren, createChild, doFindChildById, findChild, findChildIfCached, getCachedChildren, getChildren, getFileSystem, getInputStream, getOutputStream, getSuspiciousNames, getUserMap, isDirectory, iterInDbChildren, iterInDbChildrenWithoutLoadingVfsFromOtherProjects, markDirtyRecursively, refreshAndFindChild, removeChild, removeChildren, setUserMap, validateChildrenToCreate
copy, createChildData, createChildDirectory, delete, equals, exists, getCanonicalFile, getCanonicalPath, getCharset, getFileType, getId, getLength, getModificationStamp, getName, getNameId, getNameSequence, getParent, getPresentableName, getTimeStamp, hashCode, invalidate, is, isDirty, isFileIndexed, isInLocalFileSystem, isRecursiveOrCircularSymLink, isValid, isWritable, markClean, markDirty, move, rename, setFileIndexed, setModificationStamp, setTimeStamp, setWritable, toString, updateProperty
refresh
contentsToByteArray, findFileByRelativePath, findOrCreateChildData, getBOM, getDetectedLineSeparator, getExtension, getModificationCount, getNameWithoutExtension, getOutputStream, getPresentableUrl, isCharsetSet, isValidName, nameEquals, refresh, setBinaryContent, setBinaryContent, setBinaryContent, setBOM, setCharset, setCharset, setCharset, setDetectedLineSeparator, setPreloadedContentHint, storeCharset
clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace
public FsRoot(int id, int nameId, VfsData vfsData, NewVirtualFileSystem fs, java.lang.String pathBeforeSlash) throws VfsData.FileAlreadyCreatedException
protected char [] appendPathOnFileSystem(int pathLength, int[] position)
appendPathOnFileSystem
in class VirtualFileSystemEntry
public void setNewName(java.lang.String newName)
setNewName
in class VirtualFileSystemEntry
public final void setParent(VirtualFile newParent)
setParent
in class VirtualFileSystemEntry
public java.lang.String getPath()
VirtualFile
VirtualFileSystem
. Format of the path depends on the concrete file system.
For LocalFileSystem
it is an absolute file path with file separator characters
(File.separatorChar
) replaced to the forward slash ('/'
).getPath
in class VirtualFileSystemEntry
public java.lang.String getUrl()
VirtualFile
Returns the URL of this file. The URL is a string that uniquely identifies a file in all file systems.
It has the following format: <protocol>://<path>
.
File can be found by its URL using VirtualFileManager.findFileByUrl(java.lang.String)
method.
Please note these URLs are intended for use withing VFS - meaning they are not necessarily RFC-compliant.
getUrl
in class VirtualFileSystemEntry
VirtualFileManager.findFileByUrl(java.lang.String)
,
VirtualFile.getPath()
,
VirtualFileSystem.getProtocol()