public interface FileHandler
TarFileReader to forward the
processing of single files to a different class.| Modifier and Type | Method and Description |
|---|---|
void |
handleStream(InputStream in,
String name,
long size)
This method is called for processing a single file within a tar file.
|
void handleStream(InputStream in, String name, long size) throws IOException
in - the input stream, from which the content of the file can be readname - the name of the file within the tar archivesize - the size of the file (in bytes). At the same time, this is the
maximum number of bytes the method is allowed to read from the
given streamIOException - if an IO error occurs when reading from the given streamCopyright © 2019–2020. All rights reserved.