Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Java 中读取 Web 服务器日志文件。这个文件一直在更新。如果我打开一个新的 FileInputStream,它会实时读取日志吗?
问候
下面是一个基于 RandomAccessFile 的解决方案:
http://www.informit.com/guides/content.aspx?g=java&seqNum=226