|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.contentmanagement.baselayer.RawContentLocation
public class RawContentLocation
This class represents an abstract location of logical or physical location of content, e.g. a file. It is up to the implementors of RawFileContentManager to handle it in a way most appropriate for their needs.
| Constructor Summary | |
|---|---|
RawContentLocation()
Constructs a new location |
|
RawContentLocation(java.lang.String contentid,
java.lang.String dataprovider)
Constructs a new location |
|
RawContentLocation(java.lang.String contentid,
java.lang.String dataprovider,
long sizeInBytes)
Constructs a new location |
|
| Method Summary | |
|---|---|
java.lang.String |
getContentID()
Returns the ID of the content that uniquely identifies the content for this provider |
java.lang.String |
getDataprovider()
Returns the String that identifies the provider. |
long |
getSize()
Returns the size of the content represented by this location |
void |
setContentID(java.lang.String contentID)
Sets the ID of the content that uniquely identifies the content for this provider |
void |
setDataprovider(java.lang.String dataprovider)
Sets the String that identifies the provider. |
void |
setSize(long size)
Sets the size of the content represented by this location |
java.lang.String |
toString()
Generates a human-readable representation of the content location. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RawContentLocation()
public RawContentLocation(java.lang.String contentid,
java.lang.String dataprovider)
contentid - the content IDdataprovider - the data provider
public RawContentLocation(java.lang.String contentid,
java.lang.String dataprovider,
long sizeInBytes)
contentid - the content IDdataprovider - the data providersizeInBytes - the size of the content| Method Detail |
|---|
public java.lang.String getContentID()
public void setContentID(java.lang.String contentID)
contentID - the content IDpublic java.lang.String getDataprovider()
public void setDataprovider(java.lang.String dataprovider)
dataprovider - the provider of the contentpublic java.lang.String toString()
toString in class java.lang.Objectpublic long getSize()
BaseLayerStream.STREAM_LENGTH_IMPLICITEpublic void setSize(long size)
size - the size in bytes (if known); if not set because it is
unkwown, it is BaseLayerStream.STREAM_LENGTH_IMPLICITE
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||