Class SMB2Close

All Implemented Interfaces:
Packet<SMBBuffer>

public class SMB2Close extends SMB2Packet
[MS-SMB2].pdf 2.2.15 SMB2 CLOSE Request / 2.2.16 SMB2 CLOSE Response
  • Field Details

    • fileId

      private SMB2FileId fileId
    • creationTime

      private FileTime creationTime
    • lastAccessTime

      private FileTime lastAccessTime
    • lastWriteTime

      private FileTime lastWriteTime
    • changeTime

      private FileTime changeTime
    • allocationSize

      private long allocationSize
    • size

      private long size
    • fileAttributes

      private byte[] fileAttributes
  • Constructor Details

    • SMB2Close

      public SMB2Close()
    • SMB2Close

      public SMB2Close(SMB2Dialect smbDialect, long sessionId, long treeId, SMB2FileId fileId)
  • Method Details

    • 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 class SMB2Packet
      Parameters:
      buffer -
    • 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 class SMB2Packet
      Parameters:
      buffer -
      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)