Class EventStream

  • All Implemented Interfaces:
    java.lang.Runnable

    public class EventStream
    extends java.lang.Object
    implements java.lang.Runnable
    Created by mythz on 3/3/2017.
    • Method Detail

      • getInputStream

        protected java.io.InputStream getInputStream​(java.net.URL streamUri)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • cancel

        public void cancel()
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • readFromStream

        protected int readFromStream​(java.io.InputStream inputStream,
                                     byte[] buffer)
                              throws java.io.IOException,
                                     java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • readStream

        protected void readStream​(java.io.InputStream inputStream)
                           throws java.io.IOException,
                                  java.lang.InterruptedException
        Throws:
        java.io.IOException
        java.lang.InterruptedException
      • processLine

        protected void processLine​(java.lang.String line)