public void dump(final PrintWriter pw, final int offset) throws ImagingException, IOException {
        pw.printf("Chunk %s at offset %s, length %d%n, payload size %d%n", getTypeDescription(), offset >= 0 ? String.valueOf(offset) : "unknown",
                getChunkSize(), getPayloadSize());
    }
Print the chunk to the given stream.

@param pw     a stream to write to.
@param offset chunk offset.
@throws ImagingException if the image is invalid.
@throws IOException      if it fails to write to the given stream.
src/main/java/org/apache/commons/imaging/formats/webp/chunks/AbstractWebPChunk.java