public class WorkspaceFileStore
extends java.nio.file.FileStore
FileStore
implementation based on JCR Workspace
.Constructor and Description |
---|
WorkspaceFileStore(java.lang.String mountPath,
Workspace workspace) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
java.lang.Object |
getAttribute(java.lang.String attribute) |
<V extends java.nio.file.attribute.FileStoreAttributeView> |
getFileStoreAttributeView(java.lang.Class<V> type) |
long |
getTotalSpace() |
long |
getUnallocatedSpace() |
long |
getUsableSpace() |
Workspace |
getWorkspace() |
boolean |
isBase() |
boolean |
isReadOnly() |
java.lang.String |
name() |
boolean |
supportsFileAttributeView(java.lang.Class<? extends java.nio.file.attribute.FileAttributeView> type) |
boolean |
supportsFileAttributeView(java.lang.String name) |
java.lang.String |
toFsPath(Node node) |
java.lang.String |
type() |
public WorkspaceFileStore(java.lang.String mountPath, Workspace workspace)
public void close()
public java.lang.String name()
name
in class java.nio.file.FileStore
public java.lang.String type()
type
in class java.nio.file.FileStore
public boolean isReadOnly()
isReadOnly
in class java.nio.file.FileStore
public long getTotalSpace() throws java.io.IOException
getTotalSpace
in class java.nio.file.FileStore
java.io.IOException
public long getUsableSpace() throws java.io.IOException
getUsableSpace
in class java.nio.file.FileStore
java.io.IOException
public long getUnallocatedSpace() throws java.io.IOException
getUnallocatedSpace
in class java.nio.file.FileStore
java.io.IOException
public boolean supportsFileAttributeView(java.lang.Class<? extends java.nio.file.attribute.FileAttributeView> type)
supportsFileAttributeView
in class java.nio.file.FileStore
public boolean supportsFileAttributeView(java.lang.String name)
supportsFileAttributeView
in class java.nio.file.FileStore
public <V extends java.nio.file.attribute.FileStoreAttributeView> V getFileStoreAttributeView(java.lang.Class<V> type)
getFileStoreAttributeView
in class java.nio.file.FileStore
public java.lang.Object getAttribute(java.lang.String attribute) throws java.io.IOException
getAttribute
in class java.nio.file.FileStore
java.io.IOException
public Workspace getWorkspace()
public java.lang.String toFsPath(Node node) throws RepositoryException
RepositoryException
public boolean isBase()
Copyright © 2007–2020. All rights reserved.