Package org.archive.io

Examples of org.archive.io.ReplayCharSequence


    @Override
    protected void innerProcess(CrawlURI curi) throws InterruptedException {
        try {
            CrawlURI viaUri = curi.getFullVia();
            if(!viaUri.getData().containsKey("keywordHit")) {
                ReplayCharSequence seq = viaUri.getRecorder().getContentReplayCharSequence();
                viaUri.getData().put("keywordHit", getPattern().matcher(seq).find());
            }
            boolean keywordHit = (Boolean) viaUri.getData().get("keywordHit");
            int precedence = keywordHit ? getFoundPrecedence() : getNotFoundPrecedence();
            curi.setPrecedence(precedence);
View Full Code Here

TOP

Related Classes of org.archive.io.ReplayCharSequence

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.