public class PdfStream extends PdfObject
_genNumber, _objNumber
Constructor and Description |
---|
PdfStream(PdfDictionary dict,
Stream stream)
Creates a PdfStream.
|
PdfStream(PdfDictionary dict,
Stream stream,
int objNumber,
int genNumber)
Creates a PdfStream
|
Modifier and Type | Method and Description |
---|---|
PdfDictionary |
getDict()
Returns the stream's dictionary
|
String |
getFileSpecification()
If the stream is external, returns the file specification
for it, otherwise returns null.
|
String |
getFilterName()
Return the name of the filter, if the DecodeParams dictionary
is present and has a "Name" entry.
|
Filter[] |
getFilters()
Returns an array (possibly empty but not null) of the filters for
this Stream.
|
Stream |
getStream()
Returns the stream's Stream portion
|
boolean |
isImage()
Returns
true if this is an image stream. |
boolean |
isPdfaCompliant()
Returns true if no PDF/A compliance problems have been found, false if
problems have been found
|
protected List |
makeFilterList() |
getGenNumber, getObjNumber, setGenNumber, setObjNumber
public PdfStream(PdfDictionary dict, Stream stream, int objNumber, int genNumber) throws PdfException
dict
- A dictionary describing the streamstream
- A Stream tokenobjNumber
- The PDF object numbergenNumber
- The PDF generation numberPdfException
public PdfStream(PdfDictionary dict, Stream stream) throws PdfException
dict
- A dictionary describing the streamstream
- A Stream tokenPdfException
public PdfDictionary getDict()
public Stream getStream()
public String getFileSpecification()
public boolean isPdfaCompliant()
public Filter[] getFilters() throws PdfException
PdfException
public String getFilterName()
protected List makeFilterList() throws PdfException
PdfException
public boolean isImage()
true
if this is an image stream.Copyright © 2008–2017 The Open Preservation Foundation. All rights reserved.