public abstract class PersistentFS extends ManagingFS
Modifier and Type | Class and Description |
---|---|
static interface |
PersistentFS.Attributes |
DEFAULT_LENGTH, DEFAULT_TIMESTAMP
Constructor and Description |
---|
PersistentFS() |
Modifier and Type | Method and Description |
---|---|
abstract int |
acquireContent(VirtualFile file) |
abstract void |
clearIdCache() |
abstract byte [] |
contentsToByteArray(int contentId) |
abstract byte [] |
contentsToByteArray(VirtualFile file,
boolean cacheContent) |
abstract NewVirtualFile |
findFileByIdIfCached(int id) |
abstract int |
getCurrentContentId(VirtualFile file) |
abstract int |
getFileAttributes(int id) |
abstract int |
getId(VirtualFile parent,
java.lang.String childName,
NewVirtualFileSystem delegate) |
static PersistentFS |
getInstance() |
abstract long |
getLastRecordedLength(VirtualFile file) |
abstract java.lang.String |
getName(int id) |
static boolean |
isDirectory(int attributes) |
static boolean |
isHidden(int attributes) |
abstract boolean |
isHidden(VirtualFile file) |
static boolean |
isSpecialFile(int attributes) |
static boolean |
isSymLink(int attributes) |
static boolean |
isWritable(int attributes) |
abstract FSRecords.NameId [] |
listAll(VirtualFile parent) |
abstract java.lang.String [] |
listPersisted(VirtualFile parent) |
abstract boolean |
mayHaveChildren(int id) |
abstract void |
processEvents(java.util.List<? extends VFileEvent> events) |
abstract void |
releaseContent(int contentId) |
static NewVirtualFileSystem |
replaceWithNativeFS(NewVirtualFileSystem fs) |
abstract int |
storeUnlinkedContent(byte [] bytes) |
static FileAttributes |
toFileAttributes(int attr) |
areChildrenLoaded, findFileById, findRoot, getCreationTimestamp, getFilesystemModificationCount, getLocalRoots, getModificationCount, getModificationCount, getRoots, getRoots, getStructureModificationCount, readAttribute, wereChildrenAccessed, writeAttribute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contentsToByteArray, copyFile, createChildDirectory, createChildFile, deleteFile, exists, getInputStream, getLength, getOutputStream, getTimeStamp, isDirectory, isSymLink, isWritable, list, moveFile, renameFile, resolveSymLink, setTimeStamp, setWritable
public static PersistentFS getInstance()
public abstract void clearIdCache()
public abstract java.lang.String [] listPersisted(VirtualFile parent)
public abstract FSRecords.NameId [] listAll(VirtualFile parent)
public abstract int getId(VirtualFile parent, java.lang.String childName, NewVirtualFileSystem delegate)
public abstract java.lang.String getName(int id)
public abstract long getLastRecordedLength(VirtualFile file)
public abstract boolean isHidden(VirtualFile file)
public abstract int getFileAttributes(int id)
public static boolean isDirectory(int attributes)
public static boolean isWritable(int attributes)
public static boolean isSymLink(int attributes)
public static boolean isSpecialFile(int attributes)
public static boolean isHidden(int attributes)
public abstract NewVirtualFile findFileByIdIfCached(int id)
public abstract int storeUnlinkedContent(byte [] bytes)
public abstract byte [] contentsToByteArray(int contentId) throws java.io.IOException
java.io.IOException
public abstract byte [] contentsToByteArray(VirtualFile file, boolean cacheContent) throws java.io.IOException
java.io.IOException
public abstract int acquireContent(VirtualFile file)
public abstract void releaseContent(int contentId)
public abstract int getCurrentContentId(VirtualFile file)
public abstract void processEvents(java.util.List<? extends VFileEvent> events)
public static NewVirtualFileSystem replaceWithNativeFS(NewVirtualFileSystem fs)
public abstract boolean mayHaveChildren(int id)
public static FileAttributes toFileAttributes(int attr)