Class OneFilePipeline
- java.lang.Object
-
- us.codecraft.webmagic.utils.FilePersistentBase
-
- us.codecraft.webmagic.samples.pipeline.OneFilePipeline
-
- All Implemented Interfaces:
Pipeline
public class OneFilePipeline extends FilePersistentBase implements Pipeline
- Author:
- code4crafer@gmail.com
-
-
Field Summary
-
Fields inherited from class us.codecraft.webmagic.utils.FilePersistentBase
path, PATH_SEPERATOR
-
-
Constructor Summary
Constructors Constructor Description OneFilePipeline()
OneFilePipeline(java.lang.String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(ResultItems resultItems, Task task)
Process extracted results.-
Methods inherited from class us.codecraft.webmagic.utils.FilePersistentBase
checkAndMakeParentDirecotry, getFile, getPath, setPath
-
-
-
-
Constructor Detail
-
OneFilePipeline
public OneFilePipeline() throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
- Throws:
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
-
OneFilePipeline
public OneFilePipeline(java.lang.String path) throws java.io.FileNotFoundException, java.io.UnsupportedEncodingException
- Throws:
java.io.FileNotFoundException
java.io.UnsupportedEncodingException
-
-
Method Detail
-
process
public void process(ResultItems resultItems, Task task)
Description copied from interface:Pipeline
Process extracted results.
-
-