From 51427b92a2d9cd3fc619854e26536c9c6adad947 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 2 Jul 2013 22:25:23 +0200 Subject: PNGJ: Bump to git sha1 a0b1101ba2d37de39428ed55c8189502e24a3125 of https://code.google.com/p/pngj/ --- .../jogamp/opengl/util/pngj/chunks/ChunkRaw.java | 23 +++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'src/jogl/classes/jogamp/opengl/util/pngj/chunks/ChunkRaw.java') diff --git a/src/jogl/classes/jogamp/opengl/util/pngj/chunks/ChunkRaw.java b/src/jogl/classes/jogamp/opengl/util/pngj/chunks/ChunkRaw.java index 8dd0ef476..3aba26cca 100644 --- a/src/jogl/classes/jogamp/opengl/util/pngj/chunks/ChunkRaw.java +++ b/src/jogl/classes/jogamp/opengl/util/pngj/chunks/ChunkRaw.java @@ -13,13 +13,15 @@ import jogamp.opengl.util.pngj.PngjOutputException; /** * Raw (physical) chunk. *

- * Short lived object, to be created while serialing/deserializing Do not reuse it for different chunks.
+ * Short lived object, to be created while serialing/deserializing Do not reuse + * it for different chunks.
* See http://www.libpng.org/pub/png/spec/1.2/PNG-Structure.html */ public class ChunkRaw { /** - * The length counts only the data field, not itself, the chunk type code, or the CRC. Zero is a valid length. - * Although encoders and decoders should treat the length as unsigned, its value must not exceed 231-1 bytes. + * The length counts only the data field, not itself, the chunk type code, + * or the CRC. Zero is a valid length. Although encoders and decoders should + * treat the length as unsigned, its value must not exceed 231-1 bytes. */ public final int len; @@ -29,12 +31,14 @@ public class ChunkRaw { public final byte[] idbytes = new byte[4]; /** - * The data bytes appropriate to the chunk type, if any. This field can be of zero length. Does not include crc + * The data bytes appropriate to the chunk type, if any. This field can be + * of zero length. Does not include crc */ public byte[] data = null; /** - * A 4-byte CRC (Cyclic Redundancy Check) calculated on the preceding bytes in the chunk, including the chunk type - * code and chunk data fields, but not including the length field. + * A 4-byte CRC (Cyclic Redundancy Check) calculated on the preceding bytes + * in the chunk, including the chunk type code and chunk data fields, but + * not including the length field. */ private int crcval = 0; @@ -71,7 +75,8 @@ public class ChunkRaw { } /** - * Computes the CRC and writes to the stream. If error, a PngjOutputException is thrown + * Computes the CRC and writes to the stream. If error, a + * PngjOutputException is thrown */ public void writeChunk(OutputStream os) { if (idbytes.length != 4) @@ -85,8 +90,8 @@ public class ChunkRaw { } /** - * position before: just after chunk id. positon after: after crc Data should be already allocated. Checks CRC - * Return number of byte read. + * position before: just after chunk id. positon after: after crc Data + * should be already allocated. Checks CRC Return number of byte read. */ public int readChunkData(InputStream is, boolean checkCrc) { PngHelperInternal.readBytes(is, data, 0, len); -- cgit v1.2.3