org.archive.wayback.resourcestore.resourcefile
Class ResourceFactory
java.lang.Object
org.archive.wayback.resourcestore.resourcefile.ResourceFactory
public class ResourceFactory
- extends Object
Static factory class for constructing ARC/WARC Resources from
File/URL + offset.
- Version:
- $Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
- Author:
- brad
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceFactory
public ResourceFactory()
getResource
public static Resource getResource(String urlOrPath,
long offset)
throws IOException,
ResourceNotAvailableException
- Throws:
IOException
ResourceNotAvailableException
getResource
public static Resource getResource(File file,
long offset)
throws IOException,
ResourceNotAvailableException
- Throws:
IOException
ResourceNotAvailableException
getResource
public static Resource getResource(URL url,
long offset)
throws IOException,
ResourceNotAvailableException
- Throws:
IOException
ResourceNotAvailableException
ARCArchiveRecordToResource
public static Resource ARCArchiveRecordToResource(org.archive.io.ArchiveRecord rec,
org.archive.io.arc.ARCReader reader)
throws ResourceNotAvailableException,
IOException
- Throws:
ResourceNotAvailableException
IOException
WARCArchiveRecordToResource
public static Resource WARCArchiveRecordToResource(org.archive.io.ArchiveRecord rec,
org.archive.io.warc.WARCReader reader)
throws ResourceNotAvailableException,
IOException
- Throws:
ResourceNotAvailableException
IOException
Copyright © 2005-2011 Internet Archive. All Rights Reserved.