I am getting a continuous stream of characters which I have moved into a flat file in a single line. Now these characters are coming in below form.
What i want is to move messages coming between particular tags (`keep_alive`, `clear`, `enroll`, etc.) in different lines. For example output from above should be:
What is the best way to do this in Java? What is noteworthy here is that file is getting continuous data and I need to do this continuously in some kind of loop. A hundred ways to do it, all requiring programming. You might be able to employ "regular expressions" to do some of the work.
以上就是Parsing Character Stream的详细内容，更多请关注web前端其它相关文章！