Class CodestreamManipulator


  • public class CodestreamManipulator
    extends java.lang.Object
    This class takes a legal JPEG 2000 codestream and performs some manipulation on it. Currently the manipulations supported are: Tile-parts
    • Constructor Summary

      Constructors 
      Constructor Description
      CodestreamManipulator​(java.io.File file, int nt, int pptp, boolean ppm, boolean ppt, boolean tempSop, boolean tempEph)
      Instantiates a codestream manipulator..
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int doCodestreamManipulation()
      This method performs the actual manipulation of the codestream which is the reparsing for tile parts and packed packet headers
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CodestreamManipulator

        public CodestreamManipulator​(java.io.File file,
                                     int nt,
                                     int pptp,
                                     boolean ppm,
                                     boolean ppt,
                                     boolean tempSop,
                                     boolean tempEph)
        Instantiates a codestream manipulator..
        Parameters:
        file - The name of the original outfile
        nt - The number of tiles in the image
        pptp - Packets per tile-part. If zero, no division into tileparts is performed
        ppm - Flag indicating that PPM marker is used
        ppt - Flag indicating that PPT marker is used
        tempSop - Flag indicating whether SOP merker should be removed
        tempEph - Flag indicating whether EPH merker should be removed
    • Method Detail

      • doCodestreamManipulation

        public int doCodestreamManipulation()
                                     throws java.io.IOException
        This method performs the actual manipulation of the codestream which is the reparsing for tile parts and packed packet headers
        Returns:
        The number of bytes that the file has increased by
        Throws:
        java.io.IOException - If an I/O error ocurred.