public class PatchBundleWriter
extends java.lang.Object
implements java.lang.AutoCloseable
| Constructor and Description |
|---|
PatchBundleWriter(java.io.OutputStream output,
java.util.Set<PatchBase> bundleDistributions) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
write(Patch patch) |
void |
writeCreateEntry(java.lang.String targetPath,
byte[] fileContent,
java.util.EnumSet<PatchBase> entryDistributions)
Write an entry that creates a new file.
|
void |
writeModifyEntry(java.lang.String targetPath,
long baseChecksum,
byte[] patchData,
java.util.EnumSet<PatchBase> entryDistributions)
Write an entry that modifies an existing file using a patch.
|
void |
writeRemoveEntry(java.lang.String targetPath,
java.util.EnumSet<PatchBase> entryDistributions)
Write an entry that removes a file.
|
public PatchBundleWriter(java.io.OutputStream output,
java.util.Set<PatchBase> bundleDistributions)
public void writeCreateEntry(java.lang.String targetPath,
byte[] fileContent,
java.util.EnumSet<PatchBase> entryDistributions)
throws java.io.IOException
java.io.IOExceptionpublic void writeModifyEntry(java.lang.String targetPath,
long baseChecksum,
byte[] patchData,
java.util.EnumSet<PatchBase> entryDistributions)
throws java.io.IOException
java.io.IOExceptionpublic void writeRemoveEntry(java.lang.String targetPath,
java.util.EnumSet<PatchBase> entryDistributions)
throws java.io.IOException
java.io.IOExceptionpublic void write(Patch patch) throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.lang.AutoCloseablejava.io.IOException