Method Summary |
|
public static boolean | isCompressed(File arcFile) Parameters: arcFile - File to test. |
public static String | parseArcFilename(String pathOrUri) Parameters: pathOrUri - Path or URI to extract arc filename from. |
public static boolean | testCompressedARCFile(File arcFile) Check file is compressed and in ARC GZIP format.
Parameters: arcFile - File to test if its Internet Archive ARC fileGZIP compressed. |
public static boolean | testCompressedARCFile(File arcFile, boolean skipSuffixCheck) Check file is compressed and in ARC GZIP format.
Parameters: arcFile - File to test if its Internet Archive ARC fileGZIP compressed. Parameters: skipSuffixCheck - Set to true if we're not to test on the'.arc.gz' suffix. |
public static boolean | testCompressedARCStream(InputStream is) Tests passed stream is gzip stream by reading in the HEAD.
Does not reposition the stream. |
public static boolean | testCompressedRepositionalStream(RepositionableStream rs) Tests passed stream is gzip stream by reading in the HEAD.
Does reposition of stream when done.
Parameters: rs - An InputStream that is Repositionable. |
public static boolean | testCompressedStream(InputStream is) Tests passed stream is gzip stream by reading in the HEAD.
Does reposition of stream when done.
Parameters: is - An InputStream. |
public static boolean | testUncompressedARCFile(File arcFile) Check file is uncompressed ARC file.
Parameters: arcFile - File to test if its Internet Archive ARC file uncompressed. |