public final class SMBFileStore extends FileStore
SMBFileSystem. It provides access to basic attributes of that share.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Object |
getAttribute(String attribute)
Always throws an
UnsupportedOperationException as FileStoreAttributeView are currently not supported. |
<V extends FileStoreAttributeView> |
getFileStoreAttributeView(Class<V> type)
Always returns null as
FileStoreAttributeView are currently not supported. |
long |
getTotalSpace()
Returns the total capacity of the share represented by this
SMBFileStore instance. |
long |
getUnallocatedSpace()
Returns the number of bytes that are currently available on the share represented by this
SMBFileStore instance. |
long |
getUsableSpace()
Returns the number of bytes that are currently available on the share represented by this
SMBFileStore instance. |
int |
hashCode() |
boolean |
isReadOnly()
Returns false because generally,
SMBFileStore's are not considered to be read-only. |
String |
name()
Returns the full name of this
SMBFileStore, which includes the FQN of the SMBFileSystem
and the name of the associated share. |
boolean |
supportsFileAttributeView(Class<? extends FileAttributeView> type)
Checks whether or not this
SMBFileStore supports the file attributes identified by the given file attribute view. |
boolean |
supportsFileAttributeView(String name)
Checks whether or not this
SMBFileStore supports the file attributes identified by the given file attribute view. |
String |
type()
Returns the type of the
SMBFileStore, which is "share". |
public String name()
SMBFileStore, which includes the FQN of the SMBFileSystem
and the name of the associated share.name in class FileStoreSMBFileStorepublic String type()
SMBFileStore, which is "share".public boolean isReadOnly()
SMBFileStore's are not considered to be read-only. However,
the concrete access permissions are specific to a file or resource.isReadOnly in class FileStorepublic long getTotalSpace()
throws IOException
SMBFileStore instance.getTotalSpace in class FileStoreSMBFileStore instanceIOException - If total capacity cannot be determined.public long getUsableSpace()
throws IOException
SMBFileStore instance. The
value returned by this method is always the same as getUnallocatedSpace()getUsableSpace in class FileStoreIOException - If usable space cannot be determined.public long getUnallocatedSpace()
throws IOException
SMBFileStore instance. The
value returned by this method is always the same as getUsableSpace()getUnallocatedSpace in class FileStoreIOException - If usable space cannot be determined.public boolean supportsFileAttributeView(Class<? extends FileAttributeView> type)
SMBFileStore supports the file attributes identified by the given file attribute view.supportsFileAttributeView in class FileStoretype - The type of the FileAttributeView for which support should be verified.FileAttributeView is supported, false otherwise.public boolean supportsFileAttributeView(String name)
SMBFileStore supports the file attributes identified by the given file attribute view.supportsFileAttributeView in class FileStorename - Name of the FileAttributeView for which support should be verified.FileAttributeView is supported, false otherwise.public <V extends FileStoreAttributeView> V getFileStoreAttributeView(Class<V> type)
FileStoreAttributeView are currently not supported.getFileStoreAttributeView in class FileStoretype - The Class object corresponding to the attribute viewpublic Object getAttribute(String attribute) throws IOException
UnsupportedOperationException as FileStoreAttributeView are currently not supported.getAttribute in class FileStoreUnsupportedOperationException - AlwaysIOExceptionCopyright © 2017 pontius software GmbH. All rights reserved.