public class TarGzipReader extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
TarGzipReader.FileHandler
Handles a file inside the .tar.gz archive.
|
Constructor and Description |
---|
TarGzipReader() |
Modifier and Type | Method and Description |
---|---|
static void |
processGzip(String fileName,
InputStream gzipStream,
TarGzipReader.FileHandler fileHandler)
Process a .gz file and call the file handler for its contents.
|
static void |
processTar(String fileName,
InputStream tarStream,
TarGzipReader.FileHandler fileHandler)
Process a .tar file and call the handler for each normal file in the archive.
|
static void |
processTarGzip(String fileName,
InputStream tarGzipStream,
TarGzipReader.FileHandler fileHandler)
Process a .tar.gz file and call the handler for each normal file in the
archive.
|
static void |
processZip(String fileName,
InputStream zipStream,
TarGzipReader.FileHandler fileHandler)
Process a .zip file and call the handler for each normal file in the archive.
|
public static void processTarGzip(String fileName, InputStream tarGzipStream, TarGzipReader.FileHandler fileHandler)
fileName
- name/path to this filetarGzipStream
- the .tar.gz input stream to decompress. The stream will
be closed after processing.fileHandler
- the handler to call for each regular filepublic static void processGzip(String fileName, InputStream gzipStream, TarGzipReader.FileHandler fileHandler)
fileName
- name/path to this filegzipStream
- the .gz input stream to decompress. The stream will be
closed after processing.fileHandler
- the handler to callpublic static void processTar(String fileName, InputStream tarStream, TarGzipReader.FileHandler fileHandler)
fileName
- name/path to this filetarStream
- the .tar input stream to decompress. The stream will be
closed after processing.fileHandler
- the handler to call for each regular filepublic static void processZip(String fileName, InputStream zipStream, TarGzipReader.FileHandler fileHandler)
fileName
- name/path to this filezipStream
- the .zip input stream to decompress. The stream will be
closed after processing.fileHandler
- the handler to call for each regular fileCopyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.