Class OneFilePipeline

  • All Implemented Interfaces:
    us.codecraft.webmagic.pipeline.Pipeline

    public class OneFilePipeline
    extends us.codecraft.webmagic.utils.FilePersistentBase
    implements us.codecraft.webmagic.pipeline.Pipeline
    Author:
    code4crafer@gmail.com
    • Field Summary

      • Fields inherited from class us.codecraft.webmagic.utils.FilePersistentBase

        path, PATH_SEPERATOR
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void process​(us.codecraft.webmagic.ResultItems resultItems, us.codecraft.webmagic.Task task)  
      • Methods inherited from class us.codecraft.webmagic.utils.FilePersistentBase

        checkAndMakeParentDirecotry, getFile, getPath, setPath
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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​(us.codecraft.webmagic.ResultItems resultItems,
                            us.codecraft.webmagic.Task task)
        Specified by:
        process in interface us.codecraft.webmagic.pipeline.Pipeline