Update FilePipeline.java
parent
26d38851b5
commit
259f0a16c5
|
@ -41,7 +41,7 @@ public class FilePipeline extends FilePersistentBase implements Pipeline {
|
||||||
public void process(ResultItems resultItems, Task task) {
|
public void process(ResultItems resultItems, Task task) {
|
||||||
String path = this.path + PATH_SEPERATOR + task.getUUID() + PATH_SEPERATOR;
|
String path = this.path + PATH_SEPERATOR + task.getUUID() + PATH_SEPERATOR;
|
||||||
try {
|
try {
|
||||||
PrintWriter printWriter = new PrintWriter(new OutputStreamWriter(new FileOutputStream(getFile(path + DigestUtils.md5Hex(resultItems.getRequest().getUrl()) + ".html")),"UTF-8"));
|
PrintWriter printWriter = new PrintWriter(new OutputStreamWriter(new FileOutputStream(getFile(path + DigestUtils.md5Hex(resultItems.getRequest().getUrl()) + ".html")),"UTF-8"));
|
||||||
printWriter.println("url:\t" + resultItems.getRequest().getUrl());
|
printWriter.println("url:\t" + resultItems.getRequest().getUrl());
|
||||||
for (Map.Entry<String, Object> entry : resultItems.getAll().entrySet()) {
|
for (Map.Entry<String, Object> entry : resultItems.getAll().entrySet()) {
|
||||||
if (entry.getValue() instanceof Iterable) {
|
if (entry.getValue() instanceof Iterable) {
|
||||||
|
|
Loading…
Reference in New Issue