public class ZipRepository extends Object implements Repository
Constructor and Description |
---|
ZipRepository() |
ZipRepository(InputStream in) |
ZipRepository(InputStream in,
MimeRegistry mimeRegistry) |
ZipRepository(MimeRegistry mimeRegistry) |
Modifier and Type | Method and Description |
---|---|
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 |
write(OutputStream outputStream) |
void |
writeToZipStream(ZipOutputStream zipOutputStream,
Repository repository) |
public ZipRepository()
public ZipRepository(MimeRegistry mimeRegistry)
public ZipRepository(InputStream in) throws IOException
IOException
public ZipRepository(InputStream in, MimeRegistry mimeRegistry) throws IOException
IOException
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 write(OutputStream outputStream) throws IOException, ContentIOException
IOException
ContentIOException
public void writeToZipStream(ZipOutputStream zipOutputStream, Repository repository) throws IOException, ContentIOException
IOException
ContentIOException