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
|
java.lang.String |
getFileSpecification()
If the stream is external, returns the file specification
for it, otherwise returns null.
|
java.lang.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 java.util.List |
makeFilterList() |
getGenNumber, getObjNumber, setGenNumber, setObjNumberpublic 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 numberPdfExceptionpublic PdfStream(PdfDictionary dict, Stream stream) throws PdfException
dict - A dictionary describing the streamstream - A Stream tokenPdfExceptionpublic PdfDictionary getDict()
public Stream getStream()
public java.lang.String getFileSpecification()
public boolean isPdfaCompliant()
public Filter[] getFilters() throws PdfException
PdfExceptionpublic java.lang.String getFilterName()
protected java.util.List makeFilterList()
throws PdfException
PdfExceptionpublic boolean isImage()
true if this is an image stream.