Class GFCosStream

All Implemented Interfaces:
Object, CosDict, CosObject, CosStream

public class GFCosStream extends GFCosDict implements CosStream
Author:
Timur Kamalov
  • Field Details

  • Constructor Details

    • GFCosStream

      public GFCosStream(COSStream stream)
      Default constructor
      Parameters:
      stream - greenfield COSStream
  • Method Details

    • getLength

      public Long getLength()
      length of the stream
      Specified by:
      getLength in interface CosStream
    • getrealLength

      public Long getrealLength()
      Description copied from interface: CosStream
      real length of stream
      Specified by:
      getrealLength in interface CosStream
    • getF

      public String getF()
      Description copied from interface: CosStream
      represents value of F key or null if stream does not contain this key
      Specified by:
      getF in interface CosStream
      Returns:
      string representation of file specification if its present
    • getFFilter

      public String getFFilter()
      Description copied from interface: CosStream
      represents value of FFilter key or null if stream does not contain this key
      Specified by:
      getFFilter in interface CosStream
      Returns:
      string representation of filters for external file
    • getFDecodeParms

      public String getFDecodeParms()
      Description copied from interface: CosStream
      represents value of FDecodeParms key or null if stream does not contain this key
      Specified by:
      getFDecodeParms in interface CosStream
      Returns:
      string representation of decode parameters for filters applied to external file
    • getstreamKeywordCRLFCompliant

      public Boolean getstreamKeywordCRLFCompliant()
      true if the spacing around stream complies with the PDF/A requirements
      Specified by:
      getstreamKeywordCRLFCompliant in interface CosStream
    • getendstreamKeywordEOLCompliant

      public Boolean getendstreamKeywordEOLCompliant()
      Description copied from interface: CosStream
      true if spacings around keywords 'endstream' comply to the PDF/A standard
      Specified by:
      getendstreamKeywordEOLCompliant in interface CosStream
    • getLinkedObjects

      public List<? extends Object> getLinkedObjects(String link)
      Specified by:
      getLinkedObjects in interface Object
      Overrides:
      getLinkedObjects in class GFCosDict
      Parameters:
      link - - the name of a link
      Returns:
      List of objects with the given link