Modifier and Type | Class and Description |
---|---|
private static class |
Modifier and Type | Field and Description |
---|---|
private final ZipFileSystem |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public Object | getAttribute(String
the attribute to read attribute)Implements abstract java. Reads the value of a file store attribute. |
public <V extends FileStoreAttributeView> V | getFileStoreAttributeView(Class<V>
the type)Class object corresponding to the attribute viewImplements abstract java. Returns a |
public long | getTotalSpace()
Implements abstract java. Returns the size, in bytes, of the file store. |
public long | getUnallocatedSpace()
Implements abstract java. Returns the number of unallocated bytes in the file store. |
public long | getUsableSpace()
Implements abstract java. Returns the number of bytes available to this Java virtual machine on the file store. |
public boolean | isReadOnly()
Implements abstract java. Tells whether this file store is read-only. |
public String | |
public boolean | supportsFileAttributeView(Class<? extends FileAttributeView>
the file attribute view type type)Implements abstract java. Tells whether or not this file store supports the file attributes identified by the given file attribute view. |
public boolean | supportsFileAttributeView(String
the name)name of file attribute viewImplements abstract java. Tells whether or not this file store supports the file attributes identified by the given file attribute view. |
public String |
zfs | back to summary |
---|---|
private final ZipFileSystem zfs |
ZipFileStore | back to summary |
---|---|
pack-priv ZipFileStore(ZipPath zpath) |
getAttribute | back to summary |
---|---|
public Object getAttribute(String attribute) throws IOException Implements abstract java. Doc from java. Reads the value of a file store attribute. The view-name:attribute-namewhere the character ':' stands for itself.
view-name is the Usage Example: Suppose we want to know if ZFS compression is enabled (assuming the "zfs" view is supported): boolean compression = (Boolean)fs.getAttribute("zfs:compression");
|
getFileStoreAttributeView | back to summary |
---|---|
public <V extends FileStoreAttributeView> V getFileStoreAttributeView(Class<V> type) Implements abstract java. Doc from java. Returns a This method is intended to be used where the file store attribute
view defines type-safe methods to read or update the file store attributes.
The |
getTotalSpace | back to summary |
---|---|
public long getTotalSpace() throws IOException Implements abstract java. Doc from java. Returns the size, in bytes, of the file store. If the total number of
bytes in the file store is greater than
|
getUnallocatedSpace | back to summary |
---|---|
public long getUnallocatedSpace() throws IOException Implements abstract java. Doc from java. Returns the number of unallocated bytes in the file store.
If the number of unallocated bytes is greater than
The returned number of unallocated bytes is a hint, but not a guarantee, that it is possible to use most or any of these bytes. The number of unallocated bytes is most likely to be accurate immediately after this method returns. It is likely to be made inaccurate by any external I/O operations including those made on the system outside of this virtual machine.
|
getUsableSpace | back to summary |
---|---|
public long getUsableSpace() throws IOException Implements abstract java. Doc from java. Returns the number of bytes available to this Java virtual machine on the
file store. If the number of bytes available is greater than
The returned number of available bytes is a hint, but not a guarantee, that it is possible to use most or any of these bytes. The number of usable bytes is most likely to be accurate immediately after this method returns. It is likely to be made inaccurate by any external I/O operations including those made on the system outside of this Java virtual machine.
|
isReadOnly | back to summary |
---|---|
public boolean isReadOnly() Implements abstract java. Doc from java. Tells whether this file store is read-only. A file store is read-only if
it does not support write operations or other changes to files. Any
attempt to create a file, open an existing file for writing etc. causes
an
|
name | back to summary |
---|---|
public String name() Implements abstract java. Doc from java. Returns the name of this file store. The format of the name is highly implementation specific. It will typically be the name of the storage pool or volume. The string returned by this method may differ from the string
returned by the |
supportsFileAttributeView | back to summary |
---|---|
public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type) Implements abstract java. Doc from java. Tells whether or not this file store supports the file attributes identified by the given file attribute view. Invoking this method to test if the file store supports
|
supportsFileAttributeView | back to summary |
---|---|
public boolean supportsFileAttributeView(String name) Implements abstract java. Doc from java. Tells whether or not this file store supports the file attributes identified by the given file attribute view. Invoking this method to test if the file store supports |
type | back to summary |
---|---|
public String type() Implements abstract java. Doc from java. Returns the type of this file store. The format of the string returned by this method is highly implementation specific. It may indicate, for example, the format used or if the file store is local or remote. |
Modifier and Type | Field and Description |
---|---|
pack-priv final FileStore | |
pack-priv final long |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
pack-priv long | |
pack-priv long | |
pack-priv long |
fstore | back to summary |
---|---|
pack-priv final FileStore fstore |
size | back to summary |
---|---|
pack-priv final long size |
ZipFileStoreAttributes | back to summary |
---|---|
pack-priv ZipFileStoreAttributes(ZipFileStore fileStore) throws IOException |
totalSpace | back to summary |
---|---|
pack-priv long totalSpace() |
unallocatedSpace | back to summary |
---|---|
pack-priv long unallocatedSpace() throws IOException |
usableSpace | back to summary |
---|---|
pack-priv long usableSpace() throws IOException |