public class LocalFileDataElement extends DataElement
DataElement class in which the content is kept in a local file.attributes| Constructor and Description |
|---|
LocalFileDataElement() |
| Modifier and Type | Method and Description |
|---|---|
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. |
deleteAttribute, getAllAttributes, getAttributeValue, getId, setAttribute, setContentType, setIdpublic void setContent(File file)
DataElement.file - The content of the DataElement.public InputStream getContent()
DataElementgetContent 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 DataElementCopyright © 2014. All Rights Reserved.