public class ShrinkWrapFileStore extends FileStore
| Constructor and Description |
|---|
ShrinkWrapFileStore(Archive<?> archive) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String attribute) |
<V extends FileStoreAttributeView> |
getFileStoreAttributeView(Class<V> type) |
long |
getTotalSpace() |
long |
getUnallocatedSpace() |
long |
getUsableSpace() |
long |
getUsedSpace()
Iterates through the underlying archive, counting the size of each
Asset, returning the fully-tallied
count in bytes. |
boolean |
isReadOnly() |
String |
name() |
boolean |
supportsFileAttributeView(Class<? extends FileAttributeView> type) |
boolean |
supportsFileAttributeView(String name) |
String |
toString() |
String |
type() |
public ShrinkWrapFileStore(Archive<?> archive)
public String name()
name in class FileStoreFileStore.name()public String type()
type in class FileStoreFileStore.type()public boolean isReadOnly()
isReadOnly in class FileStoreFileStore.isReadOnly()public long getTotalSpace()
throws IOException
getTotalSpace in class FileStoreIOExceptionFileStore.getTotalSpace()public long getUsedSpace()
Asset, returning the fully-tallied
count in bytes.public long getUsableSpace()
throws IOException
getUsableSpace in class FileStoreIOExceptionFileStore.getUsableSpace()public long getUnallocatedSpace()
throws IOException
getUnallocatedSpace in class FileStoreIOExceptionFileStore.getUnallocatedSpace()public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type)
supportsFileAttributeView in class FileStoreFileStore.supportsFileAttributeView(java.lang.Class)public boolean supportsFileAttributeView(String name)
supportsFileAttributeView in class FileStoreFileStore.supportsFileAttributeView(java.lang.String)public <V extends FileStoreAttributeView> V getFileStoreAttributeView(Class<V> type)
getFileStoreAttributeView in class FileStoreFileStore.getFileStoreAttributeView(java.lang.Class)public Object getAttribute(String attribute) throws IOException
getAttribute in class FileStoreIOExceptionFileStore.getAttribute(java.lang.String)public String toString()
toString in class ObjectObject.toString()Copyright © 2016 JBoss by Red Hat. All rights reserved.