Method Summary |
|
protected void | addUserAgent(HttpURLConnection connection) |
protected InputStream | asRepositionable(InputStream is) |
public static ArchiveReader | get(String arcFileOrUrl) Get an Archive file Reader on passed path or url.
Does primitive heuristic figuring if path or URL.
Parameters: arcFileOrUrl - File path or URL pointing at an Archive file. |
public static ArchiveReader | get(File f) Parameters: f - An Archive file to read. |
public static ArchiveReader | get(File f, long offset) Parameters: f - An Archive file to read. Parameters: offset - Have returned Reader set to start reading at this offset. |
public static ArchiveReader | get(String s, InputStream is, boolean atFirstRecord) Wrap a Reader around passed Stream.
Parameters: s - Identifying String for this Stream used in error messages.Must be a string that ends with the name of the file we're to putan ArchiveReader on. |
public static ArchiveReader | get(URL u, long offset) Get an Archive Reader aligned at offset .
This version of get will not bring the file local but will try to
stream across the net making an HTTP 1.1 Range request on remote
http server (RFC1435 Section 14.35).
Parameters: u - HTTP URL for an Archive file. Parameters: offset - Offset into file at which to start fetching. |
public static ArchiveReader | get(URL u) Get an ARCReader.
Pulls the ARC local into whereever the System Property
java.io.tmpdir points. |
protected ArchiveReader | getArchiveReader(String arcFileOrUrl) |
protected ArchiveReader | getArchiveReader(String arcFileOrUrl, long offset) |
protected ArchiveReader | getArchiveReader(File f) |
protected ArchiveReader | getArchiveReader(File f, long offset) |
protected ArchiveReader | getArchiveReader(String id, InputStream is, boolean atFirstRecord) |
protected ArchiveReader | getArchiveReader(URL f, long offset) |
protected ArchiveReader | getArchiveReader(URL u) |
protected boolean | isCompressed(File f) Parameters: f - File to test. |
protected ArchiveReader | makeARCLocal(URLConnection connection) |