File file = new File(fileName);
System.out.println("FILE PATH: " + file.getAbsolutePath());
//FileOutputStream is meant for writing streams of raw bytes of data such as image data.
//For writing streams of characters, consider using FileWriter.
FileOutputStream output = new FileOutputStream(file);
//The initial whole HTMLDocument
HTMLDocument document = HTMLParser.createDocument(this.data.toByteArray(), this.charset_);
//The new HTMLDocument after spliting (separating) only childPath<NodePath>-->only a Node.
document = NodePathUtil.create(document.getRoot(), new NodePath[]{this.childPath_});
output.write(document.getTextValue().getBytes("utf-8"));
output.flush();
output.close();
this.data = null;
}