1 package com.ljs.ootp.extract.html; 2 3 import java.util.concurrent.Callable; 4 import org.jsoup.nodes.Document; 5 6 /** 7 * 8 * @author lstephen 9 */ 10 public final class Pages { 11 12 private Pages() { } 13 14 public static Callable<Document> asCallable(final Page page) { 15 return new Callable<Document>() { 16 @Override 17 public Document call() { 18 return page.load(); 19 } 20 }; 21 } 22 23 }