Class IOHandlerListener

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onCloseEnd()
      Will be called once the streams have been closed
      void onCloseFailed​(java.lang.Exception exception)
      Will be called if an error occurs while trying to close the streams
      void onCloseStart()
      Will be called before the closing of the streams is started
      void onDataReadEnd()
      Will be called once the process of reading data from the inputStream ends
      void onDataReadFailed​(java.lang.Exception exception)
      Will be called if an error occurs while trying to read data from the inputStream
      void onDataReadStart()
      Will be called before the process of reading data from the inputStream is being started
      void onWrite​(byte[] args)
      Will be called before data is sent over the outputStream
      void onWriteEnd()
      Will be called after the writing to the outputStream has been finished
      void onWriteFailed​(java.lang.Exception exception)
      Will be called if the writing the data to the outputStream fails
      • Methods inherited from class java.lang.Object

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

      • IOHandlerListener

        public IOHandlerListener()
    • Method Detail

      • onDataReadStart

        public void onDataReadStart()
        Will be called before the process of reading data from the inputStream is being started
      • onDataReadEnd

        public void onDataReadEnd()
        Will be called once the process of reading data from the inputStream ends
      • onDataReadFailed

        public void onDataReadFailed​(java.lang.Exception exception)
        Will be called if an error occurs while trying to read data from the inputStream
        Parameters:
        exception - which was thrown
      • onCloseStart

        public void onCloseStart()
        Will be called before the closing of the streams is started
      • onCloseEnd

        public void onCloseEnd()
        Will be called once the streams have been closed
      • onCloseFailed

        public void onCloseFailed​(java.lang.Exception exception)
        Will be called if an error occurs while trying to close the streams
        Parameters:
        exception - which was thrown during the process
      • onWrite

        public void onWrite​(byte[] args)
        Will be called before data is sent over the outputStream
        Parameters:
        args - which will be sent
      • onWriteEnd

        public void onWriteEnd()
        Will be called after the writing to the outputStream has been finished
      • onWriteFailed

        public void onWriteFailed​(java.lang.Exception exception)
        Will be called if the writing the data to the outputStream fails
        Parameters:
        exception - which was thrown while trying to send the data