public class StorageInfo
extends java.lang.Object
Constructor and Description |
---|
StorageInfo(UINT16 storageType,
UINT16 fileSystemType,
UINT16 accessCapability,
UINT64 maxCapacity,
UINT64 freeSpaceInBytes,
UINT32 freeSpaceInImages,
java.lang.String storageDescription,
java.lang.String volumeLabel) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
UINT16 |
getAccessCapability()
Returns the access capability of the storage.
|
UINT16 |
getFileSystemType()
Returns the file system type of the storage.
|
UINT64 |
getFreeSpaceInBytes()
Returns the free space in bytes of the storage.
|
UINT32 |
getFreeSpaceInImages()
Returns the free space in images of the storage.
|
UINT64 |
getMaxCapacity()
Returns the max capacity of the storage.
|
java.lang.String |
getStorageDescription()
Returns the description of the storage.
|
UINT16 |
getStorageType()
Returns the type of the storage.
|
java.lang.String |
getVolumeLabel()
Returns the volume label of the storage.
|
int |
hashCode() |
static StorageInfo |
read(java.io.InputStream is)
Construct StorageInfo from InputStream.
|
static StorageInfo |
read(org.theta4j.ptp.io.PtpInputStream pis)
Construct StorageInfo from PtpInputStream.
|
java.lang.String |
toString() |
public StorageInfo(UINT16 storageType, UINT16 fileSystemType, UINT16 accessCapability, UINT64 maxCapacity, UINT64 freeSpaceInBytes, UINT32 freeSpaceInImages, java.lang.String storageDescription, java.lang.String volumeLabel)
storageType
- The type of storage.fileSystemType
- The file system type of the storage.accessCapability
- The access capability of the storage.maxCapacity
- The max capacity of the storage.freeSpaceInBytes
- The free space in bytes of the storage.freeSpaceInImages
- The free space in images of the storage.storageDescription
- The description of the storage.volumeLabel
- The volume label of the storage.java.lang.NullPointerException
- if an argument is null.public static StorageInfo read(java.io.InputStream is) throws java.io.IOException
java.io.IOException
- if an I/O error occurs while reading the stream.java.lang.NullPointerException
- if an argument is null.public static StorageInfo read(org.theta4j.ptp.io.PtpInputStream pis) throws java.io.IOException
java.io.IOException
- if an I/O error occurs while reading the stream.java.lang.NullPointerException
- if an argument is null.public UINT16 getStorageType()
public UINT16 getFileSystemType()
public UINT16 getAccessCapability()
public UINT64 getMaxCapacity()
public UINT64 getFreeSpaceInBytes()
public UINT32 getFreeSpaceInImages()
public java.lang.String getStorageDescription()
public java.lang.String getVolumeLabel()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object