Class Ssh2NameList

java.lang.Object
org.pcap4j.packet.Ssh2NameList
All Implemented Interfaces:
Serializable

public final class Ssh2NameList extends Object implements Serializable
Since:
pcap4j 1.0.1
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • length

      private final int length
    • list

      private final List<String> list
  • Constructor Details

    • Ssh2NameList

      public Ssh2NameList(List<String> list)
      Parameters:
      list - list
    • Ssh2NameList

      public Ssh2NameList(String... names)
      Parameters:
      names - names
    • Ssh2NameList

      public Ssh2NameList(byte[] rawData, int offset, int length) throws IllegalRawDataException
      Constructor. This method validates the arguments by ByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.
      Parameters:
      rawData - rawData
      offset - offset
      length - length
      Throws:
      IllegalRawDataException - if parsing the raw data fails.
  • Method Details

    • calcLength

      private int calcLength()
    • getLength

      public int getLength()
      Returns:
      value of the length field
    • getList

      public List<String> getList()
      Returns:
      list
    • length

      public int length()
      Returns:
      length
    • getRawData

      public byte[] getRawData()
      Returns:
      rawData
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object