Class EchoingEncoderProgressListener

  • All Implemented Interfaces:
    EncoderProgressListener

    public class EchoingEncoderProgressListener
    extends java.lang.Object
    implements EncoderProgressListener
    A simple progress listener that will echo progress out to any PrintStream.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.PrintStream out  
      private java.lang.String prefix  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void message​(java.lang.String message)
      This method is called every time the encoder need to send a message (usually, a warning).
      void progress​(int permil)
      This method is called to notify a progress in the encoding process.
      void sourceInfo​(MultimediaInfo info)
      This method is called before the encoding process starts, reporting information about the source stream that will be decoded and re-encoded.
      • Methods inherited from class java.lang.Object

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

      • out

        private java.io.PrintStream out
      • prefix

        private java.lang.String prefix
    • Constructor Detail

      • EchoingEncoderProgressListener

        public EchoingEncoderProgressListener()
      • EchoingEncoderProgressListener

        public EchoingEncoderProgressListener​(java.lang.String prefix)
      • EchoingEncoderProgressListener

        public EchoingEncoderProgressListener​(java.lang.String prefix,
                                              java.io.PrintStream out)
    • Method Detail

      • sourceInfo

        public void sourceInfo​(MultimediaInfo info)
        Description copied from interface: EncoderProgressListener
        This method is called before the encoding process starts, reporting information about the source stream that will be decoded and re-encoded.
        Specified by:
        sourceInfo in interface EncoderProgressListener
        Parameters:
        info - Informations about the source multimedia stream.
      • progress

        public void progress​(int permil)
        Description copied from interface: EncoderProgressListener
        This method is called to notify a progress in the encoding process.
        Specified by:
        progress in interface EncoderProgressListener
        Parameters:
        permil - A permil value representing the encoding process progress.
      • message

        public void message​(java.lang.String message)
        Description copied from interface: EncoderProgressListener
        This method is called every time the encoder need to send a message (usually, a warning).
        Specified by:
        message in interface EncoderProgressListener
        Parameters:
        message - The message sent by the encoder.