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 null
null
IOException
- if there is a problem reading the streamorg.jboss.vfs.VirtualFile getContent(byte[] hash)
hash
- the hash. Cannot be null
boolean hasContent(byte[] hash)
hash
- the hash. Cannot be null
true
if the repository has content with the given hashvoid removeContent(byte[] hash)
hash
- the hash. Cannot be null
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.