Package com.hierynomus.mssmb2.messages
Class SMB2Close
- java.lang.Object
-
- com.hierynomus.smb.SMBPacket<SMB2PacketData,SMB2PacketHeader>
-
- com.hierynomus.mssmb2.SMB2Packet
-
- com.hierynomus.mssmb2.messages.SMB2Close
-
public class SMB2Close extends SMB2Packet
[MS-SMB2].pdf 2.2.15 SMB2 CLOSE Request / 2.2.16 SMB2 CLOSE Response
-
-
Field Summary
-
Fields inherited from class com.hierynomus.mssmb2.SMB2Packet
SINGLE_CREDIT_PAYLOAD_SIZE, structureSize
-
-
Constructor Summary
Constructors Constructor Description SMB2Close()
SMB2Close(SMB2Dialect smbDialect, long sessionId, long treeId, SMB2FileId fileId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getAllocationSize()
FileTime
getChangeTime()
FileTime
getCreationTime()
byte[]
getFileAttributes()
FileTime
getLastAccessTime()
FileTime
getLastWriteTime()
long
getSize()
protected void
readMessage(SMBBuffer buffer)
Read the packet body, this should be implemented by the various packet types.void
setFileId(SMB2FileId fileId)
protected void
writeTo(SMBBuffer buffer)
Write the message fields into the buffer, as specified in the [MS-SMB2] specification.-
Methods inherited from class com.hierynomus.mssmb2.SMB2Packet
getBuffer, getCreditsAssigned, getError, getMaxPayloadSize, getPacket, getSequenceNumber, getStructureSize, isIntermediateAsyncResponse, isSuccess, read, setCreditsAssigned, toString, write
-
-
-
-
Constructor Detail
-
SMB2Close
public SMB2Close()
-
SMB2Close
public SMB2Close(SMB2Dialect smbDialect, long sessionId, long treeId, SMB2FileId fileId)
-
-
Method Detail
-
writeTo
protected void writeTo(SMBBuffer buffer)
Description copied from class:SMB2Packet
Write the message fields into the buffer, as specified in the [MS-SMB2] specification.- Overrides:
writeTo
in classSMB2Packet
-
readMessage
protected void readMessage(SMBBuffer buffer) throws Buffer.BufferException
Description copied from class:SMB2Packet
Read the packet body, this should be implemented by the various packet types.- Overrides:
readMessage
in classSMB2Packet
- Throws:
Buffer.BufferException
-
getCreationTime
public FileTime getCreationTime()
-
getLastAccessTime
public FileTime getLastAccessTime()
-
getLastWriteTime
public FileTime getLastWriteTime()
-
getChangeTime
public FileTime getChangeTime()
-
getAllocationSize
public long getAllocationSize()
-
getSize
public long getSize()
-
getFileAttributes
public byte[] getFileAttributes()
-
setFileId
public void setFileId(SMB2FileId fileId)
-
-