public class Archive extends Object implements AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
static Archive |
assemble(PatchMeta patch,
File storage,
PatchAssembler.Assemble assemble) |
static Archive |
assemble(PatchMeta patch,
PatchAssembler.Assemble assemble) |
void |
close() |
InputStream |
get(String path) |
Checksum |
getChecksum() |
File |
getFile() |
Index |
getIndex() |
Meta |
getMeta() |
void |
open() |
static PatchMeta |
readMeta(InputStream stream) |
public Archive(File source)
public File getFile()
public Meta getMeta()
public Index getIndex()
public Checksum getChecksum()
public void open()
throws IOException
IOExceptionpublic InputStream get(String path) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface AutoCloseableIOExceptionpublic static Archive assemble(PatchMeta patch, PatchAssembler.Assemble assemble) throws IOException
IOExceptionpublic static Archive assemble(PatchMeta patch, File storage, PatchAssembler.Assemble assemble) throws IOException
IOExceptionpublic static PatchMeta readMeta(InputStream stream)
Copyright © 2025 Suncode. All rights reserved.