public class ZipRepository extends Object implements Repository
| Constructor and Description |
|---|
ZipRepository(OutputStream out) |
ZipRepository(OutputStream out,
int level) |
ZipRepository(OutputStream out,
int level,
MimeRegistry mimeRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
MimeRegistry |
getMimeRegistry()
Returns the repositories MimeRegistry, which is used return basic content-type information about the items stored
in this repository.
|
ContentLocation |
getRoot()
Returns the repositories root directory entry.
|
void |
writeContent(ZipEntry entry,
InputStream in,
int method,
int compression) |
void |
writeDirectory(ZipEntry entry) |
public ZipRepository(OutputStream out, int level, MimeRegistry mimeRegistry)
public ZipRepository(OutputStream out, int level)
public ZipRepository(OutputStream out)
public ContentLocation getRoot() throws ContentIOException
RepositorygetRoot in interface RepositoryContentIOException - if an error occurs.public MimeRegistry getMimeRegistry()
RepositorygetMimeRegistry in interface RepositoryMimeRegistrypublic void close()
throws IOException
IOExceptionpublic void writeDirectory(ZipEntry entry) throws IOException
IOExceptionpublic void writeContent(ZipEntry entry, InputStream in, int method, int compression) throws IOException
IOException