Class SMB2Close
java.lang.Object
com.hierynomus.smb.SMBPacket<SMB2PacketData, SMB2PacketHeader>
com.hierynomus.mssmb2.SMB2Packet
com.hierynomus.mssmb2.messages.SMB2Close
[MS-SMB2].pdf 2.2.15 SMB2 CLOSE Request / 2.2.16 SMB2 CLOSE Response
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate longprivate FileTimeprivate FileTimeprivate byte[]private SMB2FileIdprivate FileTimeprivate FileTimeprivate longFields inherited from class SMB2Packet
SINGLE_CREDIT_PAYLOAD_SIZE, structureSize -
Constructor Summary
ConstructorsConstructorDescriptionSMB2Close(SMB2Dialect smbDialect, long sessionId, long treeId, SMB2FileId fileId) -
Method Summary
Modifier and TypeMethodDescriptionlongbyte[]longgetSize()protected voidreadMessage(SMBBuffer buffer) Read the packet body, this should be implemented by the various packet types.voidsetFileId(SMB2FileId fileId) protected voidWrite the message fields into the buffer, as specified in the [MS-SMB2] specification.Methods inherited from class SMB2Packet
getBuffer, getCreditsAssigned, getError, getMaxPayloadSize, getPacket, getSequenceNumber, getStructureSize, isIntermediateAsyncResponse, isSuccess, read, setCreditsAssigned, setError, toString, write
-
Field Details
-
fileId
-
creationTime
-
lastAccessTime
-
lastWriteTime
-
changeTime
-
allocationSize
private long allocationSize -
size
private long size -
fileAttributes
private byte[] fileAttributes
-
-
Constructor Details
-
SMB2Close
public SMB2Close() -
SMB2Close
-
-
Method Details
-
writeTo
Description copied from class:SMB2PacketWrite the message fields into the buffer, as specified in the [MS-SMB2] specification.- Overrides:
writeToin classSMB2Packet- Parameters:
buffer-
-
readMessage
Description copied from class:SMB2PacketRead the packet body, this should be implemented by the various packet types.- Overrides:
readMessagein classSMB2Packet- Parameters:
buffer-- Throws:
Buffer.BufferException
-
getCreationTime
-
getLastAccessTime
-
getLastWriteTime
-
getChangeTime
-
getAllocationSize
public long getAllocationSize() -
getSize
public long getSize() -
getFileAttributes
public byte[] getFileAttributes() -
setFileId
-