java.lang.Object
org.pcap4j.packet.AbstractPacket
org.pcap4j.packet.SshPacket
- All Implemented Interfaces:
Serializable,Iterable<Packet>,Packet
- Since:
- pcap4j 1.2.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.pcap4j.packet.AbstractPacket
AbstractPacket.AbstractBuilder, AbstractPacket.AbstractHeaderNested classes/interfaces inherited from interface org.pcap4j.packet.Packet
Packet.Builder, Packet.Header -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Loggerprivate static final long -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.pcap4j.packet.AbstractPacket
buildHexString, buildRawData, buildString, calcHashCode, calcLength, contains, equals, get, getHeader, getOuterOf, getPayload, getRawData, hashCode, iterator, length, toHexString, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
logger
private static final org.slf4j.Logger logger
-
-
Constructor Details
-
SshPacket
private SshPacket()
-
-
Method Details
-
newPacket
public static Packet newPacket(byte[] rawData, int offset, int length) throws IllegalRawDataException A static factory method. This method validates the arguments byByteArrays.validateBounds(byte[], int, int), which may throw exceptions undocumented here.- Parameters:
rawData- rawDataoffset- offsetlength- length- Returns:
- a new Packet object representing an SSH packet.
- Throws:
IllegalRawDataException- if parsing the raw data fails.
-
getBuilder
Description copied from interface:PacketReturns a new Builder object populated with this object's fields' values.- Specified by:
getBuilderin interfacePacket- Specified by:
getBuilderin classAbstractPacket- Returns:
- a new Builder object populated with this object's fields values
-