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 FileStore
FileStore.name()
public String type()
type
in class FileStore
FileStore.type()
public boolean isReadOnly()
isReadOnly
in class FileStore
FileStore.isReadOnly()
public long getTotalSpace() throws IOException
getTotalSpace
in class FileStore
IOException
FileStore.getTotalSpace()
public long getUsedSpace()
Asset
, returning the fully-tallied
count in bytes.public long getUsableSpace() throws IOException
getUsableSpace
in class FileStore
IOException
FileStore.getUsableSpace()
public long getUnallocatedSpace() throws IOException
getUnallocatedSpace
in class FileStore
IOException
FileStore.getUnallocatedSpace()
public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type)
supportsFileAttributeView
in class FileStore
FileStore.supportsFileAttributeView(java.lang.Class)
public boolean supportsFileAttributeView(String name)
supportsFileAttributeView
in class FileStore
FileStore.supportsFileAttributeView(java.lang.String)
public <V extends FileStoreAttributeView> V getFileStoreAttributeView(Class<V> type)
getFileStoreAttributeView
in class FileStore
FileStore.getFileStoreAttributeView(java.lang.Class)
public Object getAttribute(String attribute) throws IOException
getAttribute
in class FileStore
IOException
FileStore.getAttribute(java.lang.String)
public String toString()
toString
in class Object
Object.toString()
Copyright © 2016 JBoss by Red Hat. All rights reserved.