public final class PropertiesBasedTcpOptionFactory extends Object implements PacketFactory<TcpPacket.TcpOption,TcpOptionKind>
Modifier and Type | Method and Description |
---|---|
static PropertiesBasedTcpOptionFactory |
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,
Class<? extends TcpPacket.TcpOption> dataClass) |
TcpPacket.TcpOption |
newInstance(byte[] rawData,
int offset,
int length,
TcpOptionKind number) |
public static PropertiesBasedTcpOptionFactory getInstance()
public TcpPacket.TcpOption newInstance(byte[] rawData, int offset, int length, TcpOptionKind number)
newInstance
in interface PacketFactory<TcpPacket.TcpOption,TcpOptionKind>
public TcpPacket.TcpOption newInstance(byte[] rawData, int offset, int length)
newInstance
in interface PacketFactory<TcpPacket.TcpOption,TcpOptionKind>
public TcpPacket.TcpOption newInstance(byte[] rawData, int offset, int length, Class<? extends TcpPacket.TcpOption> dataClass)
rawData
- offset
- length
- dataClass
- IllegalStateException
IllegalArgumentException
NullPointerException
public Class<? extends TcpPacket.TcpOption> getTargetClass(TcpOptionKind number)
getTargetClass
in interface PacketFactory<TcpPacket.TcpOption,TcpOptionKind>
Class
object this factory instantiates
by #newInstance(byte[], NamedNumber)
with the number argument.public Class<? extends TcpPacket.TcpOption> getTargetClass()
getTargetClass
in interface PacketFactory<TcpPacket.TcpOption,TcpOptionKind>
Class
object this factory instantiates
by #newInstance(byte[])
.Copyright © 2014. All Rights Reserved.