public class FileSystemImpl extends AbstractOshiJsonObject implements FileSystem
| Constructor and Description |
|---|
FileSystemImpl(FileSystem fileSystem)
Creates a new platform-specific FileSystem object wrapping the provided
argument
|
| Modifier and Type | Method and Description |
|---|---|
OSFileStore[] |
getFileStores()
Get file stores on this machine
Instantiates an array of
OSFileStore objects, representing a
storage pool, device, partition, volume, concrete file system or other
implementation specific means of file storage. |
long |
getMaxFileDescriptors()
The maximum number of open file descriptors.
|
long |
getOpenFileDescriptors()
The current number of open file descriptors.
|
javax.json.JsonObject |
toJSON(Properties properties)
Returns this object as a
JsonObject. |
toCompactJSON, toCompactJSON, toJSON, toPrettyJSON, toPrettyJSON, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoCompactJSON, toCompactJSON, toJSON, toPrettyJSON, toPrettyJSONpublic FileSystemImpl(FileSystem fileSystem)
fileSystem - a platform-specific FileSystem objectpublic OSFileStore[] getFileStores()
OSFileStore objects, representing a
storage pool, device, partition, volume, concrete file system or other
implementation specific means of file storage.getFileStores in interface FileSystempublic long getOpenFileDescriptors()
getOpenFileDescriptors in interface FileSystempublic long getMaxFileDescriptors()
getMaxFileDescriptors in interface FileSystempublic javax.json.JsonObject toJSON(Properties properties)
JsonObject. The provided
properties will be set on this object to configure the type of
information returned using this and future invocations of
OshiJsonObject.toJSON().toJSON in interface OshiJsonObjectproperties - Properties to configure returned resultsJsonObject for this class.Copyright © 2010–2017 oshi. All rights reserved.