Module jcifs

Class DfsReferralRequestBuffer

java.lang.Object
org.codelibs.jcifs.smb.internal.dfs.DfsReferralRequestBuffer
All Implemented Interfaces:
Encodable

public class DfsReferralRequestBuffer extends Object implements Encodable
DFS (Distributed File System) referral request buffer encoder. Creates encoded request buffers for DFS referral requests, specifying the maximum referral level and target path for which DFS resolution is requested.
Author:
mbechler
  • Constructor Details

    • DfsReferralRequestBuffer

      public DfsReferralRequestBuffer(String filename, int maxReferralLevel)
      Constructs a DFS referral request buffer
      Parameters:
      filename - the DFS path to request referral for
      maxReferralLevel - the maximum referral level to request
  • Method Details

    • size

      public int size()
      Returns the size in bytes that this object will occupy when encoded.
      Specified by:
      size in interface Encodable
      Returns:
      the encoded size
      See Also:
    • encode

      public int encode(byte[] dst, int dstIndex)
      Description copied from interface: Encodable
      Encodes this object into the specified byte array.
      Specified by:
      encode in interface Encodable
      Parameters:
      dst - the destination byte array to encode into
      dstIndex - the starting index in the destination array
      Returns:
      encoded length