|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectar.com.hjg.pngj.PngHelperInternal
public class PngHelperInternal
Some utility static methods for internal use.
Client code should not normally use this class
Field Summary | |
---|---|
static Charset |
charsetLatin1
Default charset, used internally by PNG for several things |
static Charset |
charsetUTF8
UTF-8 is only used for some chunks |
Constructor Summary | |
---|---|
PngHelperInternal()
|
Method Summary | |
---|---|
static int |
doubleToInt100000(double d)
|
static int |
filterRowAverage(int r,
int left,
int up)
|
static int |
filterRowNone(int r)
|
static int |
filterRowPaeth(int r,
int left,
int up,
int upleft)
|
static int |
filterRowSub(int r,
int left)
|
static int |
filterRowUp(int r,
int up)
|
static CRC32 |
getCRC()
thread-singleton crc engine |
static double |
intToDouble100000(int i)
|
static void |
logdebug(String msg)
|
static int |
readByte(InputStream is)
|
static void |
readBytes(InputStream is,
byte[] b,
int offset,
int len)
guaranteed to read exactly len bytes. throws error if it cant |
static int |
readInt1fromByte(byte[] b,
int offset)
|
static int |
readInt2(InputStream is)
-1 if eof PNG uses "network byte order" |
static int |
readInt2fromBytes(byte[] b,
int offset)
|
static int |
readInt4(InputStream is)
-1 if eof |
static int |
readInt4fromBytes(byte[] b,
int offset)
|
static int |
unfilterRowAverage(int r,
int left,
int up)
|
static int |
unfilterRowNone(int r)
|
static int |
unfilterRowPaeth(int r,
int left,
int up,
int upleft)
|
static int |
unfilterRowSub(int r,
int left)
|
static int |
unfilterRowUp(int r,
int up)
|
static void |
writeByte(OutputStream os,
byte b)
|
static void |
writeBytes(OutputStream os,
byte[] b)
|
static void |
writeBytes(OutputStream os,
byte[] b,
int offset,
int n)
|
static void |
writeInt2(OutputStream os,
int n)
|
static void |
writeInt2tobytes(int n,
byte[] b,
int offset)
|
static void |
writeInt4(OutputStream os,
int n)
|
static void |
writeInt4tobytes(int n,
byte[] b,
int offset)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static Charset charsetLatin1
public static Charset charsetUTF8
Constructor Detail |
---|
public PngHelperInternal()
Method Detail |
---|
public static int doubleToInt100000(double d)
public static int filterRowAverage(int r, int left, int up)
public static int filterRowNone(int r)
public static int filterRowPaeth(int r, int left, int up, int upleft)
public static int filterRowSub(int r, int left)
public static int filterRowUp(int r, int up)
public static CRC32 getCRC()
public static double intToDouble100000(int i)
public static void logdebug(String msg)
public static int readByte(InputStream is)
public static void readBytes(InputStream is, byte[] b, int offset, int len)
public static int readInt1fromByte(byte[] b, int offset)
public static int readInt2(InputStream is)
public static int readInt2fromBytes(byte[] b, int offset)
public static int readInt4(InputStream is)
public static int readInt4fromBytes(byte[] b, int offset)
public static int unfilterRowAverage(int r, int left, int up)
public static int unfilterRowNone(int r)
public static int unfilterRowPaeth(int r, int left, int up, int upleft)
public static int unfilterRowSub(int r, int left)
public static int unfilterRowUp(int r, int up)
public static void writeByte(OutputStream os, byte b)
public static void writeBytes(OutputStream os, byte[] b)
public static void writeBytes(OutputStream os, byte[] b, int offset, int n)
public static void writeInt2(OutputStream os, int n)
public static void writeInt2tobytes(int n, byte[] b, int offset)
public static void writeInt4(OutputStream os, int n)
public static void writeInt4tobytes(int n, byte[] b, int offset)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |