public class DumpArchiveInputStream extends ArchiveInputStream
| Modifier and Type | Field and Description | 
|---|---|
| protected org.apache.commons.compress.archivers.dump.TapeInputStream | raw | 
| Constructor and Description | 
|---|
| DumpArchiveInputStream(InputStream is)Constructor using the platform's default encoding for file
 names. | 
| DumpArchiveInputStream(InputStream is,
                      String encoding)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Closes the stream for this entry. | 
| long | getBytesRead()Returns the current number of bytes read from this stream. | 
| int | getCount()Deprecated.  | 
| DumpArchiveEntry | getNextDumpEntry()Read the next entry. | 
| DumpArchiveEntry | getNextEntry()Returns the next Archive Entry in this Stream. | 
| DumpArchiveSummary | getSummary()Return the archive summary information. | 
| static boolean | matches(byte[] buffer,
       int length)Look at the first few bytes of the file to decide if it's a dump
 archive. | 
| int | read(byte[] buf,
    int off,
    int len)Reads bytes from the current dump archive entry. | 
canReadEntryData, count, count, pushedBackBytes, readavailable, mark, markSupported, read, reset, skipprotected org.apache.commons.compress.archivers.dump.TapeInputStream raw
public DumpArchiveInputStream(InputStream is) throws ArchiveException
is - stream to read fromArchiveException - on errorpublic DumpArchiveInputStream(InputStream is, String encoding) throws ArchiveException
is - stream to read fromencoding - the encoding to use for file names, use null
 for the platform's default encodingArchiveException - on error@Deprecated public int getCount()
ArchiveInputStreamgetCount in class ArchiveInputStreampublic long getBytesRead()
ArchiveInputStreamgetBytesRead in class ArchiveInputStreampublic DumpArchiveSummary getSummary()
public DumpArchiveEntry getNextDumpEntry() throws IOException
IOException - on errorpublic DumpArchiveEntry getNextEntry() throws IOException
ArchiveInputStreamgetNextEntry in class ArchiveInputStreamnull if there are no more entriesIOException - if the next entry could not be readpublic int read(byte[] buf, int off, int len) throws IOException
read in class InputStreambuf - The buffer into which to place bytes read.off - The offset at which to place bytes read.len - The number of bytes to read.IOException - on errorpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic static boolean matches(byte[] buffer, int length)
buffer - data to matchlength - length of dataCopyright © 2018 The Apache Software Foundation. All rights reserved.