Class Stream
java.lang.Object
org.apache.pdfbox.debugger.streampane.Stream
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFilterList(COSStream stream) private StringReturns the label for the "Unfiltered" menu item.Return the available filter list.getImage(PDResources resources) Provide the image for stream.private StringgetPartialStreamCommand(int indexOfStopFilter) getStopFilterList(int stopFilterIndex) Returns a InputStream of a partially filtered stream.booleanisImage()Return if this is stream is an Image XObject.private booleanisImageStream(COSDictionary dic, boolean isThumb) booleanReturn if this is stream is an Metadata stream.private boolean
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOG -
UNFILTERED
- See Also:
-
IMAGE
- See Also:
-
strm
-
isThumb
private final boolean isThumb -
isImage
private final boolean isImage -
isXmlMetadata
private final boolean isXmlMetadata -
filters
-
-
Constructor Details
-
Stream
Stream(COSStream cosStream, boolean isThumb) Constructor.- Parameters:
cosStream- COSStream instance.isThumb- boolean instance says if the stream is thumbnail image.
-
-
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.
-
getFilteredLabel
Returns the label for the "Unfiltered" menu item. -
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.
-
createFilterList
-
getPartialStreamCommand
-
getStopFilterList
-
isImageStream
-
isXmlMetadataStream
-