Examples of DataWriter


Examples of org.vietspider.common.io.DataWriter

  File getDocumentFile(int code) {
    File file = UtilFile.getFolder("track/temp/");
    file  = new File(file, String.valueOf(code)+".html");
    try {
      new DataWriter().save(file, browser.getText().getBytes("utf-8"));
    } catch (Exception e) {
      ClientLog.getInstance().setMessage(browser.getShell(), e);
    }
    return file;
  }
View Full Code Here

Examples of org.vietspider.common.io.DataWriter

    response = webClient.execute(httpHost, httpGet);
    entity = response.getEntity();

    HttpResponseReader httpResponseReader = new HttpResponseReader();
    byte [] bytes = httpResponseReader.readBody(response);
    new DataWriter().save(new File("java_net.html"), bytes);

    System.out.println("Login form get: " + response.getStatusLine());
    if (entity != null) entity.consumeContent();

    System.out.println("Post logon cookies:");
View Full Code Here

Examples of org.vietspider.common.io.DataWriter

    String text = builder.toString();
    if(text.isEmpty()) return;
   
    File file  = UtilFile.getFile("system/proxy/", "bad.proxies.txt");
    try {
      new DataWriter().save(file, text.getBytes("utf-8"));
    } catch (Exception e) {
    }
  }
View Full Code Here

Examples of org.vietspider.common.io.DataWriter

   
    System.out.println(doc.getRoot().getTextValue());
   
    File file = new File("a.html");
    byte[] data = doc.getTextValue().getBytes();
    new DataWriter().save(file, data);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.