java.lang.Object
org.apache.pdfbox.debugger.streampane.Stream

public class Stream extends Object
Author:
Khyrul Bashar A class that provides the COSStream in various views and related information.
  • Field Details

  • 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

      public List<String> 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

      public InputStream getStream(String key)
      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

      public BufferedImage getImage(org.apache.pdfbox.pdmodel.PDResources resources)
      Provide the image for stream. The stream must be image XObject.
      Parameters:
      resources - PDResources for the XObject.
      Returns:
      A BufferedImage.