|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.data.LyValue
leon.data.LyFieldInfoValue
leon.data.LyFileValue
public final class LyFileValue
This class offers methods for constructing, accessing and modifying values corresponding to a LyFileFieldInfo.
LyFileFieldInfo
,
LyObject
Field Summary | |
---|---|
static java.lang.String |
__VERSION
File version |
Constructor Summary | |
---|---|
LyFileValue(LyFileFieldInfo fileFieldInfo)
Constructs an empty file value for the given file field. |
|
LyFileValue(LyFileFieldInfo fileFieldInfo,
java.lang.String value)
Constructs a file value for the given file field from a string. |
Method Summary | |
---|---|
boolean |
fetchAttachment(LyObject object)
Fetch attachment from the peer data provider. |
boolean |
getBlobContent(LyObject object)
Fetch blob content from the peer data provider. |
java.io.InputStream |
getInputStream()
Gets the InputStream to the underlying value which is a 'File' The attachment handler MUST be "blob", additional FILE fields types may be supported later. |
java.lang.String |
getLocator()
Gets the locator of the file when attachment handler is 'blob'. |
LyBlobFileHandler |
handlerFactory()
Faftory method to create an instance of a peer handler for attachment. |
void |
setInputStream(java.io.InputStream iStream)
Sets the the content of the value which is a 'file'. |
Methods inherited from class leon.data.LyFieldInfoValue |
---|
compare, contains, equals, equals, getFieldInfo, getName, getName, getShortName, getString |
Methods inherited from class leon.data.LyValue |
---|
getField, getValue, isNull, setValue, toString |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyFileValue(LyFileFieldInfo fileFieldInfo)
fileFieldInfo
- File fieldInfo for which a value is created.public LyFileValue(LyFileFieldInfo fileFieldInfo, java.lang.String value)
fileFieldInfo
- File fieldInfo for which a value is created.value
- String value as expected by parse method.LyFileFieldInfo.parse(java.lang.String)
Method Detail |
---|
public LyBlobFileHandler handlerFactory()
LyBlobFileHandler
public java.io.InputStream getInputStream()
public void setInputStream(java.io.InputStream iStream)
iStream
- the inputstream used by the data provider to read the file.public java.lang.String getLocator()
getInputStream()
,
setInputStream()
public boolean fetchAttachment(LyObject object)
public boolean getBlobContent(LyObject object)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |