us.codecraft.webmagic.model.ConsolePageModelPipeline Maven / Gradle / Ivy
package us.codecraft.webmagic.model;
import org.apache.commons.lang3.builder.ToStringBuilder;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.pipeline.PageModelPipeline;
/**
* Print page model in console.
* Usually used in test.
* @author [email protected]
* @since 0.2.0
*/
public class ConsolePageModelPipeline implements PageModelPipeline {
@Override
public void process(Object o, Task task) {
System.out.println(ToStringBuilder.reflectionToString(o));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy