Package org.archive.util.io

Examples of org.archive.util.io.RuntimeIOException


        // do we have more blocks to use?
        if(blockItr.hasNext()) {
          try {
            br = blockItr.next().readBlock();
          } catch (IOException e) {
            throw new RuntimeIOException();
          }
        } else {
          return false;
        }
      }
View Full Code Here


      status = adminFilter.filterObject(resultTester);
    }
   
    if (status != ExclusionFilter.FILTER_INCLUDE) {
      if (throwOnFail) {
        throw new RuntimeIOException(403, new AdministrativeAccessControlException(resultTester.getOriginalUrl() + " is not available in the Wayback Machine."));
      } else {
        lastKey = resultTester.getUrlKey();
        return cachedValue;
      }
    }
   
    // Robot Excludes
    if ((robotsFilter != null) && !authToken.isIgnoreRobots()) {
      status = robotsFilter.filterObject(resultTester);
    }
   
    if (status != ExclusionFilter.FILTER_INCLUDE) {
      if (throwOnFail) {
        throw new RuntimeIOException(403, new RobotAccessControlException(resultTester.getOriginalUrl() + " is blocked by the sites robots.txt file"));
      } else {
        lastKey = resultTester.getUrlKey();
        return cachedValue;
      }
    }
View Full Code Here

TOP

Related Classes of org.archive.util.io.RuntimeIOException

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.