|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.pdfview.decode.RunLengthDecode
public class RunLengthDecode
decode an array of Run Length encoded bytes into a byte array
| Method Summary | |
|---|---|
static java.nio.ByteBuffer |
decode(java.nio.ByteBuffer buf,
PDFObject params)
decode an array of bytes in RunLength format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.nio.ByteBuffer decode(java.nio.ByteBuffer buf,
PDFObject params)
throws PDFParseException
RunLength format consists of a sequence of a byte-oriented format based on run length. There are a series of "runs", where a run is a length byte followed by 1 to 128 bytes of data. If the length is 0-127, the following length+1 (1 to 128) bytes are to be copied. If the length is 129 through 255, the following single byte is copied 257-length (2 to 128) times. A length value of 128 means and End of Data (EOD).
buf - the RUnLEngth encoded bytes in a byte bufferparams - parameters to the decoder (ignored)
PDFParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||