Class Converter.PrintWriterProgressListener

    • Constructor Detail

      • PrintWriterProgressListener

        public PrintWriterProgressListener​(java.io.PrintWriter writer,
                                           int detailLevel)
    • Method Detail

      • isDetail

        public boolean isDetail​(int detail)
      • converterUpdate

        public void converterUpdate​(int updateID,
                                    int param1,
                                    int param2)
        Description copied from interface: Converter.ProgressListener
        Notifies the listener that new information is available.
        Specified by:
        converterUpdate in interface Converter.ProgressListener
        Parameters:
        updateID - Code indicating the information that has been updated.
        param1 - Parameter whose value depends upon the update code.
        param2 - Parameter whose value depends upon the update code. The updateID parameter can take these values: UPDATE_FRAME_COUNT: param1 is the frame count, or -1 if not known. UPDATE_CONVERT_COMPLETE: param1 is the conversion time, param2 is the number of frames converted.
      • readFrame

        public void readFrame​(int frameNo,
                              Header header)
        Description copied from interface: Converter.ProgressListener
        This method is called after each frame has been read, but before it has been decoded.
        Specified by:
        readFrame in interface Converter.ProgressListener
        Parameters:
        frameNo - The 0-based sequence number of the frame.
        header - The Header rerpesenting the frame just read.
      • decodedFrame

        public void decodedFrame​(int frameNo,
                                 Header header,
                                 Obuffer o)
        Description copied from interface: Converter.ProgressListener
        This method is called after a frame has been decoded.
        Specified by:
        decodedFrame in interface Converter.ProgressListener
        Parameters:
        frameNo - The 0-based sequence number of the frame.
        header - The Header rerpesenting the frame just read.
        o - The Obuffer the deocded data was written to.
      • converterException

        public boolean converterException​(java.lang.Throwable t)
        Description copied from interface: Converter.ProgressListener
        Called when an exception is thrown during while converting a frame.
        Specified by:
        converterException in interface Converter.ProgressListener
        Parameters:
        t - The Throwable instance that was thrown.
        Returns:
        true to continue processing, or false to abort conversion. If this method returns false, the exception is propagated to the caller of the convert() method. If true is returned, the exception is silently ignored and the converter moves onto the next frame.