public class ObjectFileScrubbers extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ObjectFileScrubbers.PaddingStyle |
Modifier and Type | Field and Description |
---|---|
static byte[] |
END_OF_FILE_HEADER_MARKER |
static byte[] |
GLOBAL_HEADER |
static byte[] |
GLOBAL_THIN_HEADER |
Modifier and Type | Method and Description |
---|---|
static void |
checkArchive(boolean expression,
String msg) |
static FileContentsScrubber |
createDateUidGidScrubber(ObjectFileScrubbers.PaddingStyle paddingStyle) |
static byte[] |
getBytes(ByteBuffer buffer,
int len) |
static ByteBuffer |
getCharByteBuffer(byte[] bytes,
int startPosition)
Returned buffer does _not_ include NULL-terminating char.
|
static long |
getDecimalStringAsLong(ByteBuffer buffer,
int len) |
static int |
getLittleEndianInt(ByteBuffer buffer) |
static long |
getLittleEndianLong(ByteBuffer buffer) |
static short |
getLittleEndianShort(ByteBuffer buffer) |
static void |
putBytes(ByteBuffer buffer,
byte[] bytes) |
static void |
putCharByteBuffer(ByteBuffer dest,
int position,
ByteBuffer charByteBuffer)
C string does _not_ include NULL-terminating char.
|
static void |
putIntAsDecimalString(ByteBuffer buffer,
int len,
int value,
ObjectFileScrubbers.PaddingStyle paddingStyle) |
static void |
putIntAsOctalString(ByteBuffer buffer,
int len,
int value,
ObjectFileScrubbers.PaddingStyle paddingStyle) |
static void |
putLittleEndianInt(ByteBuffer buffer,
int value) |
static void |
putLittleEndianLong(ByteBuffer buffer,
long value) |
public static final byte[] GLOBAL_HEADER
public static final byte[] GLOBAL_THIN_HEADER
public static final byte[] END_OF_FILE_HEADER_MARKER
public static FileContentsScrubber createDateUidGidScrubber(ObjectFileScrubbers.PaddingStyle paddingStyle)
public static byte[] getBytes(ByteBuffer buffer, int len)
public static long getDecimalStringAsLong(ByteBuffer buffer, int len)
public static long getLittleEndianLong(ByteBuffer buffer)
public static int getLittleEndianInt(ByteBuffer buffer)
public static short getLittleEndianShort(ByteBuffer buffer)
public static ByteBuffer getCharByteBuffer(byte[] bytes, int startPosition)
public static void putCharByteBuffer(ByteBuffer dest, int position, ByteBuffer charByteBuffer)
public static void putBytes(ByteBuffer buffer, byte[] bytes)
public static void putIntAsOctalString(ByteBuffer buffer, int len, int value, ObjectFileScrubbers.PaddingStyle paddingStyle)
public static void putIntAsDecimalString(ByteBuffer buffer, int len, int value, ObjectFileScrubbers.PaddingStyle paddingStyle)
public static void putLittleEndianLong(ByteBuffer buffer, long value)
public static void putLittleEndianInt(ByteBuffer buffer, int value)
public static void checkArchive(boolean expression, String msg) throws FileScrubber.ScrubException
FileScrubber.ScrubException