/** * Constructor. * * @param stream The content stream to parse. * @throws IOException If there is an error initializing the stream. */ public PDFStreamParser(InputStream stream) throws IOException { super(new InputStreamSource(stream)); }
/** * Constructor. * * @param bytes the bytes to parse. * @throws IOException If there is an error initializing the stream. */ public PDFStreamParser(byte[] bytes) throws IOException { super(new InputStreamSource(new ByteArrayInputStream(bytes))); }
/** * Constructor. * * @param stream The stream to parse. * @param document The document for the current parsing. * @throws IOException If there is an error initializing the stream. */ public PDFObjectStreamParser(COSStream stream, COSDocument document) throws IOException { super(new InputStreamSource(stream.createInputStream())); this.stream = stream; this.document = document; }
/** * Constructor. * * @param stream The stream to parse. * @param document The document for the current parsing. * @param resolver resolver to read the xref/trailer information * * @throws IOException If there is an error initializing the stream. */ public PDFXrefStreamParser(COSStream stream, COSDocument document, XrefTrailerResolver resolver) throws IOException { super(new InputStreamSource(stream.createInputStream())); this.stream = stream; this.document = document; this.xrefTrailerResolver = resolver; }
/** * Constructor. * * @param bytes the bytes to parse. * @throws IOException If there is an error initializing the stream. */ public PDFStreamParser(byte[] bytes) throws IOException { super(new InputStreamSource(new ByteArrayInputStream(bytes))); }
/** * Constructor. * * @param bytes the bytes to parse. * @throws IOException If there is an error initializing the stream. */ public PDFStreamParser(byte[] bytes) throws IOException { super(new InputStreamSource(new ByteArrayInputStream(bytes))); }
/** * Constructor. * * @param contentStream The content stream to parse. * @throws IOException If there is an error initializing the stream. */ public PDFStreamParser(PDContentStream contentStream) throws IOException { super(new InputStreamSource(contentStream.getContents())); }
/** * Constructor. * * @param stream The stream to parse. * @throws IOException If there is an error initializing the stream. * * @deprecated Use {@link PDFStreamParser#PDFStreamParser(PDContentStream)} instead. */ @Deprecated public PDFStreamParser(COSStream stream) throws IOException { super(new InputStreamSource(stream.createInputStream())); }
/** * Constructor. * * @param stream The stream to parse. * @throws IOException If there is an error initializing the stream. * * @deprecated Use {@link PDFStreamParser#PDFStreamParser(PDContentStream)} instead. */ @Deprecated public PDFStreamParser(PDStream stream) throws IOException { super(new InputStreamSource(stream.createInputStream())); }
/** * Constructor. * * @param stream The stream to parse. * @param document The document for the current parsing. * @throws IOException If there is an error initializing the stream. */ public PDFObjectStreamParser(COSStream stream, COSDocument document) throws IOException { super(new InputStreamSource(stream.createInputStream())); this.stream = stream; this.document = document; }
/** * Constructor. * * @param contentStream The content stream to parse. * @throws IOException If there is an error initializing the stream. */ public PDFStreamParser(PDContentStream contentStream) throws IOException { super(new InputStreamSource(contentStream.getContents())); }
/** * Constructor. * * @param stream The stream to parse. * @param document The document for the current parsing. * @throws IOException If there is an error initializing the stream. */ public PDFObjectStreamParser(COSStream stream, COSDocument document) throws IOException { super(new InputStreamSource(stream.createInputStream())); this.stream = stream; this.document = document; }
/** * Constructor. * * @param stream The stream to parse. * @throws IOException If there is an error initializing the stream. * * @deprecated Use {@link PDFStreamParser#PDFStreamParser(PDContentStream)} instead. */ @Deprecated public PDFStreamParser(PDStream stream) throws IOException { super(new InputStreamSource(stream.createInputStream())); }
/** * Constructor. * * @param stream The stream to parse. * @throws IOException If there is an error initializing the stream. * * @deprecated Use {@link PDFStreamParser#PDFStreamParser(PDContentStream)} instead. */ @Deprecated public PDFStreamParser(COSStream stream) throws IOException { super(new InputStreamSource(stream.createInputStream())); }
/** * Constructor. * * @param stream The stream to parse. * @param document The document for the current parsing. * @param resolver resolver to read the xref/trailer information * * @throws IOException If there is an error initializing the stream. */ public PDFXrefStreamParser(COSStream stream, COSDocument document, XrefTrailerResolver resolver) throws IOException { super(new InputStreamSource(stream.createInputStream())); this.stream = stream; this.document = document; this.xrefTrailerResolver = resolver; }
/** * Constructor. * * @param stream The stream to parse. * @param document The document for the current parsing. * @param resolver resolver to read the xref/trailer information * * @throws IOException If there is an error initializing the stream. */ public PDFXrefStreamParser(COSStream stream, COSDocument document, XrefTrailerResolver resolver) throws IOException { super(new InputStreamSource(stream.createInputStream())); this.stream = stream; this.document = document; this.xrefTrailerResolver = resolver; }