org.gcube.contentmanagement.baselayer.inMessageImpl
Class InMemoryRawContentLocation
java.lang.Object
org.gcube.contentmanagement.baselayer.RawContentLocation
org.gcube.contentmanagement.baselayer.inMessageImpl.InMemoryRawContentLocation
public class InMemoryRawContentLocation
- extends RawContentLocation
This class is able to hold not only the location, but also the actual raw
content in a simple byte[]
Constructor Summary |
InMemoryRawContentLocation(java.lang.String contentid,
java.lang.String dataprovider,
byte[] content)
Constructs a location that contains some binary content in main memory |
Method Summary |
byte[] |
getContent()
Returns the content |
void |
setContent(byte[] content)
Sets the content |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InMemoryRawContentLocation
public InMemoryRawContentLocation(java.lang.String contentid,
java.lang.String dataprovider,
byte[] content)
- Constructs a location that contains some binary content in main memory
- Parameters:
contentid
- the IDdataprovider
- the data provider (not really used)content
- the content
setContent
public void setContent(byte[] content)
- Sets the content
- Parameters:
content
- the content
getContent
public byte[] getContent()
- Returns the content
- Returns:
- the content