public class GzipModule
extends ModuleBase
| Constructor and Description |
|---|
GzipModule()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
parse(InputStream stream,
RepInfo info,
int parseIndex) |
void |
parse(RandomAccessFile file,
RepInfo info) |
protected void |
parseRecords(GzipReader reader)
Parse GZIP entries.
|
protected void |
processEntry(GzipEntry entry)
Process a GZIP entry.
|
void |
resetParams()
Reset parameter settings.
|
public void resetParams()
throws Exception
Exceptionpublic void parse(RandomAccessFile file, RepInfo info) throws IOException
IOExceptionpublic int parse(InputStream stream, RepInfo info, int parseIndex) throws IOException
IOExceptionprotected void parseRecords(GzipReader reader)
throws EOFException,
IOException,
JhoveException
reader - GZIP reader used to parse recordsEOFException - if EOF occurs prematurelyIOException - if an IO error occurs while processingJHOVE2Exception - if a serious problem needs to be reportedJhoveExceptionprotected void processEntry(GzipEntry entry)
throws EOFException,
IOException,
JhoveException
entry - ZGIP entry from GZIP readerEOFException - if EOF occurs prematurelyIOException - if an IO error occurs while processingJhoveException - if a serious problem needs to be reportedCopyright © 2008–2017 The Open Preservation Foundation. All rights reserved.