|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
multivalent.std.adaptor.pdf.InputStreamComposite
Merges possibly multiple component InputStream
s,
possibly with encodings such as Flate and ASCIIHex,
possibly with a Predictor (on LZW or Flate),
possibly encrypted.
Does not expand out image-specific filters (DCT, FAX, JBIG2).
Allows one character of unread(int)
and peek()
.
DecodeASCIIHex
,
DecodeRunLength
,
InputStreamASCII85
,
InputStreamLZW
,
InflaterInputStream
,
DecodePredictor
Constructor Summary | |
---|---|
InputStreamComposite(java.lang.Object obj,
boolean iscontent,
PDFReader pdfr)
Returns stream of buffered, decrypted, uncompressed data; image filters not processed. |
Method Summary | |
---|---|
int |
available()
|
void |
close()
|
void |
mark(int readlimit)
|
boolean |
markSupported()
If no filter, true; else false. |
int |
peek()
Returns next character without advancing file position pointer, so that next peek() or read() returns same character at same position. |
int |
read()
|
int |
read(byte[] b,
int off,
int len)
|
void |
reset()
|
long |
skip(long n)
|
void |
unread(int c)
Pushes back one character of stream, so that the next read() will return it. |
Methods inherited from class java.io.InputStream |
---|
read |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputStreamComposite(java.lang.Object obj, boolean iscontent, PDFReader pdfr) throws java.io.IOException
Dict
) can supply inline data by setting COS.STREAM_DATA
key with byte[].
obj
- can be COS.CLASS_DICTIONARY
for stream with filters, IRef
to stream or array or streams, Object[] of IRef's to stream, or COS.CLASS_DATA
for final data requiring no filters.iscontent
- declare whether stream corresponds to page contents, and if so insert extra space between each pair of substreams, to handle corner case where concatenated streams don't have such space and would concatenate commands or arguments.
java.io.IOException
Method Detail |
---|
public int peek() throws java.io.IOException
java.io.IOException
public void unread(int c)
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.InputStream
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException
public void mark(int readlimit)
mark
in class java.io.InputStream
public void close() throws java.io.IOException
close
in class java.io.InputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.InputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.InputStream
java.io.IOException
|
Multivalent API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |