Take a look at Apache Commons implementation of Tailer class. It does seem to handle log rotation as well.
More Related Contents:
- Write byte array to file in java
- How to move elements of Java ArrayList to file in java [closed]
- How do I create a Java string from the contents of a file?
- How do I save a String to a text file using Java?
- How to create a temporary directory/folder in Java?
- Reliable File.renameTo() alternative on Windows?
- What is simplest way to read a file into String? [duplicate]
- Inserting text into an existing file via Java
- How to Write text file Java
- Java FileOutputStream Create File if not exists
- How do I use Java to read from a file that is actively being written to?
- Elegant way to read file into byte[] array in Java [duplicate]
- Check line for unprintable characters while reading text file
- Writing a file to sdcard
- File truncate operation in Java
- Whole text file to a String in Java
- Java BufferedReader back to the top of a text file?
- java IO to copy one File to another
- How to append data to a file?
- Reading from a text file and storing in a String [duplicate]
- BufferedWriter not writing everything to its output file
- List all files from a directory recursively with Java
- How to get absolute path to file in /resources folder of your project
- Java, List only subdirectories from a directory, not files
- What is the best/simplest way to read in an XML file in Java application? [closed]
- I/O concept flush vs sync
- Strings written to file do not preserve line breaks
- adding progress bar to each table cell for file progress – Java
- Does BufferedReader.ready() method ensure that readLine() method does not return NULL?
- How can I read file from classes directory in my WAR?