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
Repository
getRoot
in interface Repository
ContentIOException
- if an error occurs.public MimeRegistry getMimeRegistry()
Repository
getMimeRegistry
in interface Repository
MimeRegistry
public void close() throws IOException
IOException
public void writeDirectory(ZipEntry entry) throws IOException
IOException
public void writeContent(ZipEntry entry, InputStream in, int method, int compression) throws IOException
IOException