| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int[] | |
| pack-priv static final int | |
| pack-priv int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv static final int | |
| pack-priv byte[] | |
| pack-priv static final int | |
| pack-priv static final byte[] | |
| pack-priv static final byte[] | |
| pack-priv static final byte[] | |
| pack-priv static final int | |
| pack-priv static final byte[] | |
| pack-priv static final byte[] |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv boolean | |
| pack-priv int | |
| pack-priv void | contributeToString(StringBuilder buffer)
Provided so that subclasses can override and add data to the toString() call. |
| pack-priv int | |
| pack-priv int | |
| pack-priv byte[] | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv byte[] | |
| pack-priv int | |
| pack-priv byte[] | |
| pack-priv boolean | |
| pack-priv static PngChunk | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | setInt16(int offset, int value)
Set the 16-bit integer in the reference byte array at the given offset. |
| pack-priv void | setInt32(int offset, int value)
Set the 32-bit integer in the reference byte array at the given offset. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public String | Returns: a string representation of the eventOverrides java. |
| pack-priv boolean | |
| pack-priv void | validate(PngFileReadState readState, PngIhdrChunk headerChunk)
Answer whether the chunk is a valid PNG chunk. |
| CHUNK_IDAT | back to summary |
|---|---|
| pack-priv static final int CHUNK_IDAT | |
| CHUNK_IEND | back to summary |
|---|---|
| pack-priv static final int CHUNK_IEND | |
| CHUNK_IHDR | back to summary |
|---|---|
| pack-priv static final int CHUNK_IHDR | |
| CHUNK_PLTE | back to summary |
|---|---|
| pack-priv static final int CHUNK_PLTE | |
| CHUNK_tRNS | back to summary |
|---|---|
| pack-priv static final int CHUNK_tRNS | |
| CHUNK_UNKNOWN | back to summary |
|---|---|
| pack-priv static final int CHUNK_UNKNOWN | |
| CRC_TABLE | back to summary |
|---|---|
| pack-priv static final int[] CRC_TABLE | |
| DATA_OFFSET | back to summary |
|---|---|
| pack-priv static final int DATA_OFFSET | |
| length | back to summary |
|---|---|
| pack-priv int length | |
| LENGTH_FIELD_LENGTH | back to summary |
|---|---|
| pack-priv static final int LENGTH_FIELD_LENGTH | |
| LENGTH_OFFSET | back to summary |
|---|---|
| pack-priv static final int LENGTH_OFFSET | |
| MIN_LENGTH | back to summary |
|---|---|
| pack-priv static final int MIN_LENGTH | |
| reference | back to summary |
|---|---|
| pack-priv byte[] reference | |
| TYPE_FIELD_LENGTH | back to summary |
|---|---|
| pack-priv static final int TYPE_FIELD_LENGTH | |
| TYPE_IDAT | back to summary |
|---|---|
| pack-priv static final byte[] TYPE_IDAT | |
| TYPE_IEND | back to summary |
|---|---|
| pack-priv static final byte[] TYPE_IEND | |
| TYPE_IHDR | back to summary |
|---|---|
| pack-priv static final byte[] TYPE_IHDR | |
| TYPE_OFFSET | back to summary |
|---|---|
| pack-priv static final int TYPE_OFFSET | |
| TYPE_PLTE | back to summary |
|---|---|
| pack-priv static final byte[] TYPE_PLTE | |
| TYPE_tRNS | back to summary |
|---|---|
| pack-priv static final byte[] TYPE_tRNS | |
| PngChunk | back to summary |
|---|---|
| pack-priv PngChunk(byte[] reference) Construct a PngChunk using the reference bytes given. | |
| PngChunk | back to summary |
|---|---|
| pack-priv PngChunk(int dataLength) Construct a PngChunk with the specified number of data bytes. | |
| checkCRC | back to summary |
|---|---|
| pack-priv boolean checkCRC() Compute the CRC value for the chunk's data. Answer whether this value matches the value stored in the chunk. | |
| computeCRC | back to summary |
|---|---|
| pack-priv int computeCRC() Answer the CRC value of chunk's data. | |
| contributeToString | back to summary |
|---|---|
| pack-priv void contributeToString(StringBuilder buffer) Provided so that subclasses can override and add data to the toString() call. | |
| getChunkType | back to summary |
|---|---|
| pack-priv int getChunkType() | |
| getCRC | back to summary |
|---|---|
| pack-priv int getCRC() Get the CRC value for the chunk's data. Ensure that the length field has a good value before making this call. | |
| getData | back to summary |
|---|---|
| pack-priv byte[] getData() Get the chunk's data. | |
| getInt16 | back to summary |
|---|---|
| pack-priv int getInt16(int offset) Get the 16-bit integer from the reference byte array at the given offset. | |
| getInt32 | back to summary |
|---|---|
| pack-priv int getInt32(int offset) Get the 32-bit integer from the reference byte array at the given offset. | |
| getLength | back to summary |
|---|---|
| pack-priv int getLength() Get the length of the data component of this chunk. This is not the length of the entire chunk. | |
| getReference | back to summary |
|---|---|
| pack-priv byte[] getReference() Get the PngChunk's reference byteArray; | |
| getSize | back to summary |
|---|---|
| pack-priv int getSize() Get the chunk's total size including the length, type, and crc fields. | |
| getTypeBytes | back to summary |
|---|---|
| pack-priv byte[] getTypeBytes() Get the chunk type. This is a four byte value. Each byte should be an ASCII character. The first byte is upper case if the chunk is critical. The second byte is upper case if the chunk is publicly defined. The third byte must be upper case. The fourth byte is upper case if the chunk is unsafe to copy. Public chunk types are defined by the PNG Development Group. | |
| isCritical | back to summary |
|---|---|
| pack-priv boolean isCritical() | |
| readNextFromStream | back to summary |
|---|---|
| pack-priv static PngChunk readNextFromStream(LEDataInputStream stream) Read the next PNG chunk from the input stream given. If unable to read a chunk, return null. | |
| setCRC | back to summary |
|---|---|
| pack-priv void setCRC(int value) Set the CRC value for the chunk's data. Ensure that the length field has a good value before making this call. | |
| setData | back to summary |
|---|---|
| pack-priv void setData(byte[] data) Set the chunk's data. This method has two side-effects. 1. It will set the length field to be the length of the data array given. 2. It will set the CRC field to the computed CRC value of the data array given. | |
| setInt16 | back to summary |
|---|---|
| pack-priv void setInt16(int offset, int value) Set the 16-bit integer in the reference byte array at the given offset. | |
| setInt32 | back to summary |
|---|---|
| pack-priv void setInt32(int offset, int value) Set the 32-bit integer in the reference byte array at the given offset. | |
| setLength | back to summary |
|---|---|
| pack-priv void setLength(int value) Set the length of the data component of this chunk. This is not the length of the entire chunk. | |
| setReference | back to summary |
|---|---|
| pack-priv void setReference(byte[] reference) Set the PngChunk's reference byteArray; | |
| setType | back to summary |
|---|---|
| pack-priv void setType(byte[] value) Set the chunk type. This is a four byte value. Each byte should be an ASCII character. The first byte is upper case if the chunk is critical. The second byte is upper case if the chunk is publicly defined. The third byte must be upper case. The fourth byte is upper case if the chunk is unsafe to copy. Public chunk types are defined by the PNG Development Group. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string containing a concise, human-readable description of the receiver. | |
| typeMatchesArray | back to summary |
|---|---|
| pack-priv boolean typeMatchesArray(byte[] array) | |
| validate | back to summary |
|---|---|
| pack-priv void validate(PngFileReadState readState, PngIhdrChunk headerChunk) Answer whether the chunk is a valid PNG chunk. | |