| java.lang.Object org.archive.io.ArchiveReaderFactory org.archive.io.warc.v10.WARCReaderFactory
WARCReaderFactory | public class WARCReaderFactory extends ArchiveReaderFactory implements WARCConstants(Code) | | Factory for WARC Readers.
Figures whether to give out a compressed file Reader or an uncompressed
Reader.
author: stack version: $Date: 2006-08-23 17:59:04 -0700 (Wed, 23 Aug 2006) $ $Version$ |
get | public static WARCReader get(File f, long offset) throws IOException(Code) | | Parameters: f - An arcfile to read. Parameters: offset - Have returned Reader set to start reading at this offset. A WARCReader. throws: IOException - |
get | public static WARCReader get(URL arcUrl) throws IOException(Code) | | Get an ARCReader.
Pulls the ARC local into whereever the System Property
java.io.tmpdir points. It then hands back an ARCReader that
points at this local copy. A close on this ARCReader instance will
remove the local copy.
Parameters: arcUrl - An URL that points at an ARC. An ARCReader. throws: IOException - |
isWARCSuffix | public static boolean isWARCSuffix(String f)(Code) | | |
testCompressedWARCFile | public static boolean testCompressedWARCFile(File f) throws IOException(Code) | | Check file is compressed WARC.
Parameters: f - File to test. True if this is compressed WARC (TODO: Just tests if file isGZIP'd file (It begins w/ GZIP MAGIC)). exception: IOException - If file does not exist or is not unreadable. |
Methods inherited from org.archive.io.ArchiveReaderFactory | protected void addUserAgent(HttpURLConnection connection)(Code)(Java Doc) protected InputStream asRepositionable(InputStream is)(Code)(Java Doc) public static ArchiveReader get(String arcFileOrUrl) throws MalformedURLException, IOException(Code)(Java Doc) public static ArchiveReader get(File f) throws IOException(Code)(Java Doc) public static ArchiveReader get(File f, long offset) throws IOException(Code)(Java Doc) public static ArchiveReader get(String s, InputStream is, boolean atFirstRecord) throws IOException(Code)(Java Doc) public static ArchiveReader get(URL u, long offset) throws IOException(Code)(Java Doc) public static ArchiveReader get(URL u) throws IOException(Code)(Java Doc) protected ArchiveReader getArchiveReader(String arcFileOrUrl) throws MalformedURLException, IOException(Code)(Java Doc) protected ArchiveReader getArchiveReader(String arcFileOrUrl, long offset) throws MalformedURLException, IOException(Code)(Java Doc) protected ArchiveReader getArchiveReader(File f) throws IOException(Code)(Java Doc) protected ArchiveReader getArchiveReader(File f, long offset) throws IOException(Code)(Java Doc) protected ArchiveReader getArchiveReader(String id, InputStream is, boolean atFirstRecord) throws IOException(Code)(Java Doc) protected ArchiveReader getArchiveReader(URL f, long offset) throws IOException(Code)(Java Doc) protected ArchiveReader getArchiveReader(URL u) throws IOException(Code)(Java Doc) protected boolean isCompressed(File f) throws IOException(Code)(Java Doc) protected ArchiveReader makeARCLocal(URLConnection connection) throws IOException(Code)(Java Doc)
|
|
|