public class PcapFormatUtils extends Object
| Constructor and Description |
|---|
PcapFormatUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
convertInt(byte[] data,
int offset) |
static int |
convertShort(byte[] data,
int offset) |
static int |
getByte(byte[] buf,
int offset) |
static int |
getInt(byte[] buf,
int offset) |
static int |
getIntFileOrder(boolean byteOrder,
byte[] buf,
int offset) |
static int |
getShort(byte[] buf,
int offset) |
static int |
getShortFileOrder(boolean byteOrder,
byte[] buf,
int offset) |
static String |
parseBytesToASCII(byte[] data) |
public static int getIntFileOrder(boolean byteOrder,
byte[] buf,
int offset)
byteOrder - true for forward file order, false fore revers file orderbuf - byte bufferoffset - buffer offsetpublic static int getShortFileOrder(boolean byteOrder,
byte[] buf,
int offset)
byteOrder - true for forward file order, false for reverse file orderbuf - byte bufferoffset - buffer offsetpublic static int getInt(byte[] buf,
int offset)
public static int getShort(byte[] buf,
int offset)
public static int getByte(byte[] buf,
int offset)
public static int convertShort(byte[] data,
int offset)
public static int convertInt(byte[] data,
int offset)
public static String parseBytesToASCII(byte[] data)
Copyright © 2021 The Apache Software Foundation. All rights reserved.