public class DumpArchiveInputStream extends ArchiveInputStream
| Modifier and Type | Field and Description |
|---|---|
protected org |
raw
|
| Constructor and Description |
|---|
DumpArchiveInputStream(InputStream
Constructor using the platform's default encoding for file names.
|
DumpArchiveInputStream(InputStream
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()
Read the next entry.
|
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, skippublic DumpArchiveInputStream(InputStreamis) throws ArchiveException
is -
ArchiveException -
public DumpArchiveInputStream(InputStreamis, String encoding) throws ArchiveException
is -
encoding - the encoding to use for file names, use null for the platform's default encoding
ArchiveException
@Deprecated public int getCount()
ArchiveInputStream
getCount in class
ArchiveInputStream
public long getBytesRead()
ArchiveInputStream
getBytesRead in class
ArchiveInputStream
public DumpArchiveSummarygetSummary()
public DumpArchiveEntrygetNextDumpEntry() throws IOException
IOException
public DumpArchiveEntrygetNextEntry() throws IOException
getNextEntry in class
ArchiveInputStream
null if there are no more entries
IOException - if the next entry could not be read
public int read(byte[] buf,
int off,
int len)
throws IOException
read in class
InputStream
buf - 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 error
public void close()
throws IOException
close in interface
Closeable
close in interface
AutoCloseable
close in class
InputStream
IOException
public static boolean matches(byte[] buffer,
int length)