java.lang.Object
org.codelibs.jcifs.smb.internal.fscc.SmbInfoAllocation
- All Implemented Interfaces:
Decodable,AllocInfo,FileSystemInformation
Represents the SMB_INFO_ALLOCATION information level used in SMB transaction requests.
This structure provides allocation information for a file system including total units,
free units, sectors per allocation unit, and bytes per sector.
-
Field Summary
Fields inherited from interface org.codelibs.jcifs.smb.internal.fscc.FileSystemInformation
FS_FULL_SIZE_INFO, FS_SIZE_INFO, SMB_INFO_ALLOCATION -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SmbInfoAllocation
public SmbInfoAllocation()Default constructor for SMB allocation information.
-
-
Method Details
-
getFileSystemInformationClass
public byte getFileSystemInformationClass()Gets the file system information class.- Specified by:
getFileSystemInformationClassin interfaceFileSystemInformation- Returns:
- file system information class
- See Also:
-
getCapacity
public long getCapacity()Description copied from interface:AllocInfoGets the total capacity of the allocation.- Specified by:
getCapacityin interfaceAllocInfo- Returns:
- total capacity
-
getFree
public long getFree()Description copied from interface:AllocInfoGets the free space available. -
decode
Decode data from a byte buffer- Specified by:
decodein interfaceDecodable- Parameters:
buffer- the byte buffer containing the data to decodebufferIndex- the starting index in the bufferlen- the maximum length of data to decode- Returns:
- decoded length
- Throws:
SMBProtocolDecodingException- if decoding fails- See Also:
-
toString
-