Class Stream
java.lang.Object
org.apache.pdfbox.debugger.streampane.Stream
- Author:
- Khyrul Bashar A class that provides the COSStream in various views and related information.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturn the available filter list.getImage
(org.apache.pdfbox.pdmodel.PDResources resources) Provide the image for stream.Returns a InputStream of a partially filtered stream.boolean
isImage()
Return if this is stream is an Image XObject.boolean
Return if this is stream is an Metadata stream.
-
Field Details
-
UNFILTERED
- See Also:
-
IMAGE
- See Also:
-
-
Method Details
-
isImage
public boolean isImage()Return if this is stream is an Image XObject.- Returns:
- true if this an image and false otherwise.
-
isXmlMetadata
public boolean isXmlMetadata()Return if this is stream is an Metadata stream.- Returns:
- true if this a metadata stream and false otherwise.
-
getFilterList
Return the available filter list. Only "Unfiltered" is returned if there is no filter and in case of XObject image type stream "Image" is also included in the list.- Returns:
- An array of String.
-
getStream
Returns a InputStream of a partially filtered stream.- Parameters:
key
- is an instance of String which tells which version of stream should be returned.- Returns:
- an InputStream.
-
getImage
Provide the image for stream. The stream must be image XObject.- Parameters:
resources
- PDResources for the XObject.- Returns:
- A BufferedImage.
-