Unix/Linux“tail-f”的Java IO实现
java.io.FileReader
TailFileReader lft = new TailFileReader("application.log");BufferedReader br = new BufferedReader(lft);String line;try { while (true) { line= br.readLine(); // do something interesting with line }} catch (IOException e) { // barf}
TailFileReader
沧海一幻觉
MYYA
相关分类