public interface ContentRepository
| Modifier and Type | Interface and Description |
|---|---|
static class |
ContentRepository.Factory |
| Modifier and Type | Field and Description |
|---|---|
static org.jboss.msc.service.ServiceName |
SERVICE_NAME
Standard ServiceName under which a service controller for an instance of
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
addContent(InputStream stream)
Add the given content to the repository.
|
org.jboss.vfs.VirtualFile |
getContent(byte[] hash)
Get the content as a virtual file.
|
boolean |
hasContent(byte[] hash)
Gets whether content with the given hash is stored in the repository.
|
void |
removeContent(byte[] hash)
Remove the given content from the repository.
|
static final org.jboss.msc.service.ServiceName SERVICE_NAME
byte[] addContent(InputStream stream) throws IOException
stream - stream from which the content can be read. Cannot be nullnullIOException - if there is a problem reading the streamorg.jboss.vfs.VirtualFile getContent(byte[] hash)
hash - the hash. Cannot be nullboolean hasContent(byte[] hash)
hash - the hash. Cannot be nulltrue if the repository has content with the given hashvoid removeContent(byte[] hash)
hash - the hash. Cannot be nullCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.