public class MemoryContainer extends RdfSourceImpl implements BasicContainer, ResourceHandler
body, contentLocation, contentType, type| Constructor and Description |
|---|
MemoryContainer(String contentLocation,
String contentType,
ResourceType type,
byte[] body) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ResourceFile resource) |
Container |
asContainer() |
Iterable<String> |
getMemberIds() |
void |
handle(ResourceFile resource) |
boolean |
isContainer() |
void |
remove(String resourceId)
Remove the specified resource from this container
|
asRdfSource, createGraph, getGraph, isRdfSource, setGraphasBasicContainer, getContentLocation, getContentType, getEntityBody, getEntityBodyText, getType, isBasicContainer, setEntityBody, setTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateGraph, getGraph, setGraphasBasicContainer, asRdfSource, getContentLocation, getContentType, getEntityBody, getEntityBodyText, getType, isBasicContainer, isRdfSource, setEntityBody, setTypepublic MemoryContainer(String contentLocation, String contentType, ResourceType type, byte[] body)
public void add(ResourceFile resource)
public Iterable<String> getMemberIds()
getMemberIds in interface Containerpublic void handle(ResourceFile resource) throws IOException
handle in interface ResourceHandlerIOExceptionpublic void remove(String resourceId) throws IOException
Containerremove in interface ContainerIOExceptionpublic boolean isContainer()
isContainer in interface ResourceFileisContainer in class ResourceFileImplpublic Container asContainer()
asContainer in interface ResourceFileasContainer in class ResourceFileImplCopyright © 2019. All rights reserved.