public class PcapReaderUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
convertAddress(byte[] data,
int offset,
int size) |
static long |
convertInt(byte[] data) |
static long |
convertInt(byte[] data,
boolean reversed) |
static long |
convertInt(byte[] data,
int offset) |
static long |
convertInt(byte[] data,
int offset,
boolean reversed) |
static String |
convertProtocolIdentifier(int identifier) |
static int |
convertShort(byte[] data) |
static int |
convertShort(byte[] data,
int offset) |
static byte[] |
convertShort(int data) |
static long |
convertUnsignedInt(byte[] data,
int offset) |
static byte[] |
readPayload(byte[] packetData,
int payloadDataStart,
int payloadLength)
Reads the packet payload and returns it as byte[].
|
static short |
readUnsignedByte(byte[] buf,
int index) |
public static long convertInt(byte[] data)
public static long convertInt(byte[] data,
boolean reversed)
public static long convertInt(byte[] data,
int offset,
boolean reversed)
public static long convertInt(byte[] data,
int offset)
public static int convertShort(byte[] data)
public static byte[] convertShort(int data)
public static int convertShort(byte[] data,
int offset)
public static long convertUnsignedInt(byte[] data,
int offset)
public static String convertProtocolIdentifier(int identifier)
public static String convertAddress(byte[] data, int offset, int size)
public static short readUnsignedByte(byte[] buf,
int index)
public static byte[] readPayload(byte[] packetData,
int payloadDataStart,
int payloadLength)
packetData - payloadDataStart - Copyright © 2019. All rights reserved.