Class Tail

  • All Implemented Interfaces:
    java.lang.Runnable

    public class Tail
    extends java.lang.Object
    implements java.lang.Runnable
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      (package private) class  Tail.FileWatcher  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.commons.logging.Log _logger  
      private boolean _stop  
      private java.lang.Thread _thread  
      private byte[] buffer  
      private static int CHUNK_SIZE  
      private java.util.List list  
    • Constructor Summary

      Constructors 
      Constructor Description
      Tail()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addFile​(java.io.File file, java.io.OutputStream out, int pos)  
      private void close()  
      private boolean isDone()  
      void join()  
      void run()  
      void setLog​(org.apache.commons.logging.Log logger)  
      void start()  
      void stop()  
      • Methods inherited from class java.lang.Object

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

      • buffer

        private byte[] buffer
      • _stop

        private boolean _stop
      • list

        private java.util.List list
      • _thread

        private java.lang.Thread _thread
      • _logger

        private org.apache.commons.logging.Log _logger
    • Constructor Detail

      • Tail

        public Tail()
    • Method Detail

      • setLog

        public void setLog​(org.apache.commons.logging.Log logger)
      • start

        public void start()
      • join

        public void join()
                  throws java.lang.InterruptedException
        Throws:
        java.lang.InterruptedException
      • addFile

        public void addFile​(java.io.File file,
                            java.io.OutputStream out,
                            int pos)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • run

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

        private boolean isDone()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        private void close()
      • stop

        public void stop()