org.gcube.contentmanagement.baselayer.inMessageImpl
Class InMemoryRawContentLocation

java.lang.Object
  extended by org.gcube.contentmanagement.baselayer.RawContentLocation
      extended by 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 org.gcube.contentmanagement.baselayer.RawContentLocation
getContentID, getDataprovider, getSize, setContentID, setDataprovider, setSize, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 ID
dataprovider - the data provider (not really used)
content - the content
Method Detail

setContent

public void setContent(byte[] content)
Sets the content

Parameters:
content - the content

getContent

public byte[] getContent()
Returns the content

Returns:
the content