public final class StaticTcpOptionFactory extends Object implements PacketFactory<TcpPacket.TcpOption,TcpOptionKind>
Modifier and Type | Method and Description |
---|---|
static StaticTcpOptionFactory |
getInstance() |
Class<? extends TcpPacket.TcpOption> |
getTargetClass() |
Class<? extends TcpPacket.TcpOption> |
getTargetClass(TcpOptionKind number) |
TcpPacket.TcpOption |
newInstance(byte[] rawData,
int offset,
int length) |
TcpPacket.TcpOption |
newInstance(byte[] rawData,
int offset,
int length,
TcpOptionKind number) |
public static StaticTcpOptionFactory getInstance()
public TcpPacket.TcpOption newInstance(byte[] rawData, int offset, int length, TcpOptionKind number)
newInstance
in interface PacketFactory<TcpPacket.TcpOption,TcpOptionKind>
rawData
- rawDataoffset
- offsetlength
- lengthnumber
- numberpublic TcpPacket.TcpOption newInstance(byte[] rawData, int offset, int length)
newInstance
in interface PacketFactory<TcpPacket.TcpOption,TcpOptionKind>
rawData
- rawDataoffset
- offsetlength
- lengthpublic Class<? extends TcpPacket.TcpOption> getTargetClass(TcpOptionKind number)
getTargetClass
in interface PacketFactory<TcpPacket.TcpOption,TcpOptionKind>
number
- numberClass
object this factory instantiates
by PacketFactory.newInstance(byte[], int, int, NamedNumber)
with the number argument.public Class<? extends TcpPacket.TcpOption> getTargetClass()
getTargetClass
in interface PacketFactory<TcpPacket.TcpOption,TcpOptionKind>
Class
object this factory instantiates
by PacketFactory.newInstance(byte[], int, int)
.Copyright © 2011–2016 Pcap4J.org. All rights reserved.