public class PatchBundleReader extends java.lang.Object implements java.lang.Iterable<Patch>, java.lang.AutoCloseable
| Constructor and Description |
|---|
PatchBundleReader(java.io.File file) |
PatchBundleReader(java.io.InputStream input) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getEntriesRead()
Returns the number of entries that have been read so far.
|
int |
getEntryCount()
Returns the total number of entries in the bundle.
|
java.util.EnumSet<PatchBase> |
getSupportedBaseTypes()
Returns the target distributions declared in the bundle header.
|
boolean |
hasMoreEntries()
Returns true if all entries have been read.
|
java.util.Iterator<Patch> |
iterator() |
Patch |
readEntry()
Read the next entry from the bundle.
|
public PatchBundleReader(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic PatchBundleReader(java.io.InputStream input)
throws java.io.IOException
java.io.IOExceptionpublic java.util.EnumSet<PatchBase> getSupportedBaseTypes()
public int getEntryCount()
public int getEntriesRead()
public boolean hasMoreEntries()
public java.util.Iterator<Patch> iterator()
iterator in interface java.lang.Iterable<Patch>public Patch readEntry() throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseablejava.io.IOException