Modifier and Type | Class | Description |
---|---|---|
class |
ContentCreationException |
A exception that indicates that a new ContentEntry could not be created in the repository.
|
Modifier and Type | Method | Description |
---|---|---|
static ContentItem |
RepositoryUtilities.createItem(Repository repository,
java.lang.String[] name) |
Tries to create a content item with the given path-name in the repository.
|
static ContentLocation |
RepositoryUtilities.createLocation(Repository repository,
java.lang.String[] name) |
Tries to create a content location with the given path-name in the repository.
|
java.lang.String |
DefaultNameGenerator.generateName(java.lang.String nameHint,
java.lang.String mimeType) |
Generates a new, unique name for storing resources in the output
repository.
|
java.lang.String |
NameGenerator.generateName(java.lang.String nameHint,
java.lang.String mimeType) |
Generates a new name for the location.
|
static ContentEntity |
RepositoryUtilities.getEntity(Repository repository,
java.lang.String[] name) |
Returns the content entity for the given path name.
|
ContentEntity |
ContentLocation.getEntry(java.lang.String name) |
Returns the content entity with the given name.
|
java.io.InputStream |
ContentItem.getInputStream() |
Tries to open and return a input stream for reading from the content item.
|
java.lang.String |
ContentItem.getMimeType() |
Returns the mime type for the content entity.
|
java.io.OutputStream |
ContentItem.getOutputStream() |
Tries to open and return a output stream for writing into the content item.
|
ContentLocation |
Repository.getRoot() |
Returns the repositories root directory entry.
|
static boolean |
RepositoryUtilities.isExistsEntity(Repository repository,
java.lang.String[] name) |
Checks whether a given pathname points to a valid content entity.
|
ContentEntity[] |
ContentLocation.listContents() |
Returns all content entities stored in this content-location.
|
static void |
RepositoryUtilities.writeAsZip(java.io.OutputStream outputStream,
Repository repository) |
Writes the given repository as ZIP-File into the given output stream.
|
static void |
RepositoryUtilities.writeToZipStream(java.util.zip.ZipOutputStream zipOutputStream,
Repository repository) |
Writes the given repository to the given ZIP-output stream.
|
Modifier and Type | Method | Description |
---|---|---|
ContentEntity |
DummyContentLocation.getEntry(java.lang.String name) |
Returns the content entity with the given name.
|
java.lang.String |
DummyContentItem.getMimeType() |
Returns the mime type for the content entity.
|
ContentEntity[] |
DummyContentLocation.listContents() |
Returns all content entities stored in this content-location.
|
Modifier and Type | Method | Description |
---|---|---|
ContentEntity |
FileContentLocation.getEntry(java.lang.String name) |
Returns the content entity with the given name.
|
java.io.InputStream |
FileContentItem.getInputStream() |
|
java.lang.String |
FileContentItem.getMimeType() |
|
java.io.OutputStream |
FileContentItem.getOutputStream() |
|
ContentLocation |
FileRepository.getRoot() |
Returns the repositories root directory entry.
|
ContentEntity[] |
FileContentLocation.listContents() |
Lists all content entities stored in this content-location.
|
Constructor | Description |
---|---|
FileContentLocation(ContentLocation parent,
java.io.File backend) |
Creates a new location for the given parent and directory.
|
FileContentLocation(Repository repository,
java.io.File backend) |
Creates a new root-location for the given repository and directory.
|
FileRepository(java.io.File file) |
Creates a new repository for the given file.
|
FileRepository(java.io.File file,
MimeRegistry mimeRegistry) |
Creates a new repository for the given file.
|
Modifier and Type | Method | Description |
---|---|---|
ContentEntity |
StreamContentLocation.getEntry(java.lang.String name) |
Returns the content entity with the given name.
|
java.io.InputStream |
StreamContentItem.getInputStream() |
Tries to open and return a input stream for reading from the content item.
|
java.lang.String |
StreamContentItem.getMimeType() |
Returns the mime type for the content entity.
|
java.io.OutputStream |
StreamContentItem.getOutputStream() |
Tries to open and return a output stream for writing into the content item.
|
ContentEntity[] |
StreamContentLocation.listContents() |
Returns all content entities stored in this content-location.
|
Modifier and Type | Method | Description |
---|---|---|
ContentEntity |
ZipContentLocation.getEntry(java.lang.String name) |
|
java.io.InputStream |
ZipContentItem.getInputStream() |
|
java.lang.String |
ZipContentItem.getMimeType() |
|
java.io.OutputStream |
ZipContentItem.getOutputStream() |
|
ContentLocation |
ZipRepository.getRoot() |
|
ContentEntity[] |
ZipContentLocation.listContents() |
|
void |
ZipRepository.write(java.io.OutputStream outputStream) |
|
void |
ZipRepository.writeToZipStream(java.util.zip.ZipOutputStream zipOutputStream,
Repository repository) |
Modifier and Type | Method | Description |
---|---|---|
ContentEntity |
ZipReadContentLocation.getEntry(java.lang.String name) |
|
java.io.InputStream |
ZipReadContentItem.getInputStream() |
|
java.lang.String |
ZipReadContentItem.getMimeType() |
|
java.io.OutputStream |
ZipReadContentItem.getOutputStream() |
|
ContentLocation |
ZipReadRepository.getRoot() |
|
ContentEntity[] |
ZipReadContentLocation.listContents() |
Modifier and Type | Method | Description |
---|---|---|
ContentEntity |
ZipContentLocation.getEntry(java.lang.String name) |
|
java.io.InputStream |
ZipContentItem.getInputStream() |
|
java.lang.String |
ZipContentItem.getMimeType() |
|
java.io.OutputStream |
ZipContentItem.getOutputStream() |
|
ContentLocation |
ZipRepository.getRoot() |
|
ContentEntity[] |
ZipContentLocation.listContents() |