Class ShareInfo
- java.lang.Object
-
- com.hierynomus.msfscc.fileinformation.ShareInfo
-
public class ShareInfo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private long
actualAvailableAllocationUnits
private long
actualFreeSpace
private long
bytesPerSector
private long
callerAvailableAllocationUnits
private long
callerFreeSpace
private long
sectorsPerAllocationUnit
private long
totalAllocationUnits
private long
totalSpace
-
Constructor Summary
Constructors Constructor Description ShareInfo(long totalAllocationUnits, long callerAvailableAllocationUnits, long actualAvailableAllocationUnits, long sectorsPerAllocationUnit, long bytesPerSector)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAvailableAllocationUnits()
long
getBytesPerSector()
long
getCallerAvailableAllocationUnits()
long
getCallerFreeSpace()
long
getFreeSpace()
long
getSectorsPerAllocationUnit()
long
getTotalAllocationUnits()
long
getTotalSpace()
static ShareInfo
parseFsFullSizeInformation(Buffer.PlainBuffer response)
[MS-SMB2] 2.2.38 SMB2 QUERY_INFO Response, SMB2_0_INFO_FILESYSTEM/FileFsFullSizeInformation
-
-
-
Field Detail
-
totalAllocationUnits
private final long totalAllocationUnits
-
callerAvailableAllocationUnits
private final long callerAvailableAllocationUnits
-
actualAvailableAllocationUnits
private final long actualAvailableAllocationUnits
-
sectorsPerAllocationUnit
private final long sectorsPerAllocationUnit
-
bytesPerSector
private final long bytesPerSector
-
totalSpace
private final long totalSpace
-
callerFreeSpace
private final long callerFreeSpace
-
actualFreeSpace
private final long actualFreeSpace
-
-
Method Detail
-
getFreeSpace
public long getFreeSpace()
-
getCallerFreeSpace
public long getCallerFreeSpace()
-
getTotalSpace
public long getTotalSpace()
-
getTotalAllocationUnits
public long getTotalAllocationUnits()
-
getAvailableAllocationUnits
public long getAvailableAllocationUnits()
-
getCallerAvailableAllocationUnits
public long getCallerAvailableAllocationUnits()
-
getSectorsPerAllocationUnit
public long getSectorsPerAllocationUnit()
-
getBytesPerSector
public long getBytesPerSector()
-
parseFsFullSizeInformation
public static ShareInfo parseFsFullSizeInformation(Buffer.PlainBuffer response) throws Buffer.BufferException
[MS-SMB2] 2.2.38 SMB2 QUERY_INFO Response, SMB2_0_INFO_FILESYSTEM/FileFsFullSizeInformation[MS-FSCC] 2.5.4 FileFsFullSizeInformation for SMB2
- Throws:
Buffer.BufferException
-
-