|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement
org.gcube.datatransformation.datatransformationlibrary.dataelements.impl.LocalFileDataElement
public class LocalFileDataElement
DataElement class in which the content is kept in a local file.| Field Summary |
|---|
| Fields inherited from class org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement |
|---|
attributes |
| Constructor Summary | |
|---|---|
LocalFileDataElement()
|
|
| Method Summary | |
|---|---|
void |
destroy()
|
InputStream |
getContent()
Abstract method which returns the content of the DataElement in a stream. |
ContentType |
getContentType()
Returns the ContentType of the DataElement. |
File |
getFileContent()
Returns the content as file. |
static LocalFileDataElement |
getSinkDataElement(DataElement sourceDataElement)
Returns a new LocalFileDataElement which contains all the attributes taken from the source DataElement. |
static LocalFileDataElement |
getSourceDataElement()
Returns a new LocalFileDataElement. |
void |
setContent(File file)
Sets the file which contains the content of the DataElement. |
| Methods inherited from class org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement |
|---|
deleteAttribute, getAllAttributes, getAttributeValue, getId, setAttribute, setContentType, setId |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalFileDataElement()
| Method Detail |
|---|
public void setContent(File file)
DataElement.
file - The content of the DataElement.public InputStream getContent()
DataElement
getContent in class DataElementDataElement.getContent()public File getFileContent()
public ContentType getContentType()
DataElementContentType of the DataElement.
getContentType in class DataElementDataElement.getContentType()public static LocalFileDataElement getSourceDataElement()
public static LocalFileDataElement getSinkDataElement(DataElement sourceDataElement)
DataElement.
sourceDataElement - The DataElement from which the new one inherits all attributes.
public void destroy()
destroy in class DataElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||