public class ResourceFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ResourceFactory.DefaultTimeoutArchiveReaderFactory |
Modifier and Type | Field and Description |
---|---|
protected static org.apache.hadoop.fs.FileSystem |
hdfsSys |
protected static org.apache.hadoop.fs.FileSystem |
s3Sys |
Constructor and Description |
---|
ResourceFactory() |
Modifier and Type | Method and Description |
---|---|
static Resource |
ARCArchiveRecordToResource(org.archive.io.ArchiveRecord rec,
org.archive.io.ArchiveReader reader) |
static Resource |
getResource(File file,
long offset) |
static Resource |
getResource(String urlOrPath,
long offset) |
static Resource |
getResource(URI uri,
long offset) |
static Resource |
getResource(URL url,
long offset) |
static Resource |
WARCArchiveRecordToResource(org.archive.io.ArchiveRecord rec,
org.archive.io.ArchiveReader reader) |
protected static org.apache.hadoop.fs.FileSystem hdfsSys
protected static org.apache.hadoop.fs.FileSystem s3Sys
public static Resource getResource(String urlOrPath, long offset) throws IOException, ResourceNotAvailableException
public static Resource getResource(URI uri, long offset) throws IOException, ResourceNotAvailableException, URISyntaxException
public static Resource getResource(File file, long offset) throws IOException, ResourceNotAvailableException
public static Resource getResource(URL url, long offset) throws IOException, ResourceNotAvailableException
public static Resource ARCArchiveRecordToResource(org.archive.io.ArchiveRecord rec, org.archive.io.ArchiveReader reader) throws ResourceNotAvailableException, IOException
public static Resource WARCArchiveRecordToResource(org.archive.io.ArchiveRecord rec, org.archive.io.ArchiveReader reader) throws ResourceNotAvailableException, IOException
Copyright © 2005–2015 IIPC. All rights reserved.