Class Tail.FileWatcher

  • Enclosing class:
    Tail

    class Tail.FileWatcher
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.OutputStream _out  
      private long _pos  
      private java.io.RandomAccessFile _ras  
    • Constructor Summary

      Constructors 
      Constructor Description
      FileWatcher​(java.io.File file, java.io.OutputStream out, int pos)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      long getDiff()  
      void init()  
      void moveBuffer​(byte[] buffer, int size)  
      • Methods inherited from class java.lang.Object

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

      • _ras

        private java.io.RandomAccessFile _ras
      • _out

        private java.io.OutputStream _out
      • _pos

        private long _pos
    • Constructor Detail

      • FileWatcher

        public FileWatcher​(java.io.File file,
                           java.io.OutputStream out,
                           int pos)
                    throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • init

        public void init()
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • getDiff

        public long getDiff()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • moveBuffer

        public void moveBuffer​(byte[] buffer,
                               int size)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • close

        public void close()