public class DumpArchiveInputStream extends ArchiveInputStream<DumpArchiveEntry>
There doesn't seem to exist a hint on the encoding of string values in any piece documentation. Given the main purpose of dump/restore is backing up a system it seems very likely the format uses the current default encoding of the system.
| Constructor and Description |
|---|
DumpArchiveInputStream(java.io.InputStream is)
Constructor using the platform's default encoding for file names.
|
DumpArchiveInputStream(java.io.InputStream is,
java.lang.String encoding)
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the stream for this entry.
|
long |
getBytesRead()
Gets the current number of bytes read from this stream.
|
int |
getCount()
Deprecated.
|
DumpArchiveEntry |
getNextDumpEntry()
Deprecated.
Use
getNextEntry(). |
DumpArchiveEntry |
getNextEntry()
Gets the next Archive Entry in this Stream.
|
DumpArchiveSummary |
getSummary()
Gets 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, getCharset, mark, markSupported, read, resetpublic DumpArchiveInputStream(java.io.InputStream is)
throws ArchiveException
is - stream to read fromArchiveException - on errorpublic DumpArchiveInputStream(java.io.InputStream is,
java.lang.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 errorpublic static boolean matches(byte[] buffer,
int length)
buffer - data to matchlength - length of datapublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.FilterInputStreamjava.io.IOExceptionpublic long getBytesRead()
ArchiveInputStreamgetBytesRead in class ArchiveInputStream<DumpArchiveEntry>@Deprecated public int getCount()
ArchiveInputStreamgetCount in class ArchiveInputStream<DumpArchiveEntry>@Deprecated public DumpArchiveEntry getNextDumpEntry() throws java.io.IOException
getNextEntry().java.io.IOException - on errorpublic DumpArchiveEntry getNextEntry() throws java.io.IOException
ArchiveInputStreamgetNextEntry in class ArchiveInputStream<DumpArchiveEntry>null if there are no more entriesjava.io.IOException - if the next entry could not be readpublic DumpArchiveSummary getSummary()
public int read(byte[] buf,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreambuf - The buffer into which to place bytes read.off - The offset at which to place bytes read.len - The number of bytes to read.java.io.IOException - on errorCopyright © 2010 - 2024 Adobe. All Rights Reserved