Package com.firefly.utils.io

Examples of com.firefly.utils.io.LineReaderHandler


 
  @RequestMapping(value = "/big")
  public View testBigData(HttpServletRequest request) throws InterruptedException {
    final StringBuilder json = new StringBuilder();
    try {
      FileUtils.read(new File("/Users/qiupengtao/develop/jsontest.txt"), new LineReaderHandler(){

        @Override
        public void readline(String text, int num) {
          json.append(text);
         
View Full Code Here


public class FileUtilsExample {

  public static void main(String[] args) throws IOException {
    File parent = new File("/Users/qiupengtao/Documents");
    FileUtils.read(new File(parent, "dev_note"), new LineReaderHandler() {
      @Override
      public void readline(String text, int num) {
        System.out.println(num + "\t" + text);
      }
    }, "utf-8");
View Full Code Here

TOP

Related Classes of com.firefly.utils.io.LineReaderHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.