public final class BinaryFunctions
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
charsToQuad(char c1,
char c2,
char c3,
char c4) |
static boolean |
compareBytes(byte[] a,
int aStart,
byte[] b,
int bStart,
int length) |
static void |
copyStreamToStream(java.io.InputStream is,
java.io.OutputStream os) |
static int |
findNull(byte[] src) |
static int |
findNull(byte[] src,
int start) |
static byte[] |
getRAFBytes(java.io.RandomAccessFile raf,
long pos,
int length,
java.lang.String exception) |
static byte[] |
getStreamBytes(java.io.InputStream is) |
static byte[] |
head(byte[] bytes,
int count) |
static void |
printByteBits(java.lang.String msg,
byte i) |
static void |
printCharQuad(java.io.PrintWriter pw,
java.lang.String msg,
int i) |
static void |
printCharQuad(java.lang.String msg,
int i) |
static int |
read2Bytes(java.lang.String name,
java.io.InputStream is,
java.lang.String exception,
java.nio.ByteOrder byteOrder) |
static int |
read3Bytes(java.lang.String name,
java.io.InputStream is,
java.lang.String exception,
java.nio.ByteOrder byteOrder) |
static int |
read4Bytes(java.lang.String name,
java.io.InputStream is,
java.lang.String exception,
java.nio.ByteOrder byteOrder) |
static void |
readAndVerifyBytes(java.io.InputStream is,
BinaryConstant expected,
java.lang.String exception) |
static void |
readAndVerifyBytes(java.io.InputStream is,
byte[] expected,
java.lang.String exception) |
static byte |
readByte(java.lang.String name,
java.io.InputStream is,
java.lang.String exception) |
static byte[] |
readBytes(java.io.InputStream is,
int count) |
static byte[] |
readBytes(java.lang.String name,
java.io.InputStream is,
int length) |
static byte[] |
readBytes(java.lang.String name,
java.io.InputStream is,
int length,
java.lang.String exception) |
static byte[] |
remainingBytes(java.lang.String name,
byte[] bytes,
int count) |
static void |
skipBytes(java.io.InputStream is,
long length) |
static void |
skipBytes(java.io.InputStream is,
long length,
java.lang.String exception) |
static byte[] |
slice(byte[] bytes,
int start,
int count) |
static boolean |
startsWith(byte[] haystack,
BinaryConstant needle) |
static boolean |
startsWith(byte[] haystack,
byte[] needle) |
public static boolean startsWith(byte[] haystack, byte[] needle)
public static boolean startsWith(byte[] haystack, BinaryConstant needle)
public static byte readByte(java.lang.String name, java.io.InputStream is, java.lang.String exception) throws java.io.IOException
java.io.IOException
public static byte[] readBytes(java.lang.String name, java.io.InputStream is, int length) throws java.io.IOException
java.io.IOException
public static byte[] readBytes(java.lang.String name, java.io.InputStream is, int length, java.lang.String exception) throws java.io.IOException
java.io.IOException
public static byte[] readBytes(java.io.InputStream is, int count) throws java.io.IOException
java.io.IOException
public static void readAndVerifyBytes(java.io.InputStream is, byte[] expected, java.lang.String exception) throws ImageReadException, java.io.IOException
ImageReadException
java.io.IOException
public static void readAndVerifyBytes(java.io.InputStream is, BinaryConstant expected, java.lang.String exception) throws ImageReadException, java.io.IOException
ImageReadException
java.io.IOException
public static void skipBytes(java.io.InputStream is, long length, java.lang.String exception) throws java.io.IOException
java.io.IOException
public static byte[] remainingBytes(java.lang.String name, byte[] bytes, int count)
public static byte[] slice(byte[] bytes, int start, int count)
public static byte[] head(byte[] bytes, int count)
public static boolean compareBytes(byte[] a, int aStart, byte[] b, int bStart, int length)
public static int read4Bytes(java.lang.String name, java.io.InputStream is, java.lang.String exception, java.nio.ByteOrder byteOrder) throws java.io.IOException
java.io.IOException
public static int read3Bytes(java.lang.String name, java.io.InputStream is, java.lang.String exception, java.nio.ByteOrder byteOrder) throws java.io.IOException
java.io.IOException
public static int read2Bytes(java.lang.String name, java.io.InputStream is, java.lang.String exception, java.nio.ByteOrder byteOrder) throws java.io.IOException
java.io.IOException
public static void printCharQuad(java.lang.String msg, int i)
public static void printCharQuad(java.io.PrintWriter pw, java.lang.String msg, int i)
public static void printByteBits(java.lang.String msg, byte i)
public static int charsToQuad(char c1, char c2, char c3, char c4)
public static int findNull(byte[] src)
public static int findNull(byte[] src, int start)
public static byte[] getRAFBytes(java.io.RandomAccessFile raf, long pos, int length, java.lang.String exception) throws java.io.IOException
java.io.IOException
public static void skipBytes(java.io.InputStream is, long length) throws java.io.IOException
java.io.IOException
public static void copyStreamToStream(java.io.InputStream is, java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public static byte[] getStreamBytes(java.io.InputStream is) throws java.io.IOException
java.io.IOException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"