|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.indi.objects.Object<Object>
org.indi.objects.Element
org.indi.objects.Blob
public class Blob
a BLOB (binary large object) as transferred by the indi protocol
Field Summary | |
---|---|
protected java.lang.String |
format
the format of the BLOB usually the extension of a file format |
protected long |
size
the length of the BLOB in bytes |
Fields inherited from class org.indi.objects.Element |
---|
label, name, value |
Fields inherited from class org.indi.objects.Object |
---|
children, message, transferType |
Constructor Summary | |
---|---|
Blob(java.lang.String name,
java.lang.String label)
class constuctor |
|
Blob(java.lang.String name,
java.lang.String format,
long size,
java.lang.String value)
class constructor |
Method Summary | |
---|---|
java.lang.String |
getStartTag(TransferType type)
Get the opening XML tag for the element |
protected java.lang.String |
getType()
|
java.lang.String |
getValue(TransferType type)
get the value of the indielement |
void |
setValue(java.io.File file)
Set the data to be transferred using a given file as input |
void |
setValue(java.io.InputStream inputStream,
java.lang.String format)
|
void |
setValue(java.lang.String data)
Set the data to be tranferred by the BLOB (format is set to the empty string) |
void |
setValue(java.lang.String data,
java.lang.String format)
Set the data to be tranferred by the BLOB |
Methods inherited from class org.indi.objects.Element |
---|
getEndTag, getName, getXML, hashCode, oEquals |
Methods inherited from class org.indi.objects.Object |
---|
equals, getChildren, getMessage, getTransferType, getXML, setTransferType, treeEquals |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String format
protected long size
Constructor Detail |
---|
public Blob(java.lang.String name, java.lang.String label)
name
- the name of the BLOBlabel
- the label of the BLOB (to be used for display in the GUI)public Blob(java.lang.String name, java.lang.String format, long size, java.lang.String value)
name
- the name of the BLOBformat
- the format of the BLOB usually the extension of a file
formatsize
- the length of the BLOB in bytesvalue
- the data carryed by the BLOBMethod Detail |
---|
public java.lang.String getValue(TransferType type)
Element
getValue
in class Element
type
- the way the blob has benn transferred.
public java.lang.String getStartTag(TransferType type)
Element
getStartTag
in class Element
type
- the transfertype to be used
Element.getStartTag(org.indi.objects.TransferType)
public void setValue(java.lang.String data, java.lang.String format)
data
- the data to be transferredformat
- the format of the data, ususually the extension of a file
formatpublic void setValue(java.io.File file)
file
- the file to be used as inputpublic void setValue(java.io.InputStream inputStream, java.lang.String format)
public void setValue(java.lang.String data)
setValue
in class Element
data
- the data to be transferredprotected java.lang.String getType()
getType
in class Element
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |