|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.util.AbstractXmlObject
com.waveset.util.Binary
The Binary class represents an arbitrary chunk of binary data. The data is stored internally as a base-64 encoded string. It corresponds to an attribute value of "binary" Syntax.
Field Summary | |
static java.lang.String |
code_id
|
Fields inherited from class com.waveset.util.AbstractXmlObject |
_trace |
Constructor Summary | |
Binary(byte[] data)
Construct a Binary with the data byte[] array. |
|
Binary(javax.activation.DataSource dataSource)
Contruct a Binary object from a DataSource. |
|
Binary(org.w3c.dom.Element e)
XML constructor required by the XmlObject interface. |
|
Binary(java.io.InputStream in)
Contruct a Binary with an InputStream of bytes. |
|
Binary(java.io.InputStream in,
boolean close)
Contruct a Binary with an InputStream of bytes. |
|
Binary(java.lang.String data)
Construct a Binary with a base64 encoded string. |
Method Summary | |
boolean |
equals(java.lang.Object other)
|
java.lang.String |
getElementName()
Return the desired XML element name, required by the XmlObject interface. |
boolean |
isNull()
|
byte[] |
toDecodedByteArray()
|
java.lang.String |
toEncodedString()
|
java.lang.String |
toString()
Returns a brief description of the object |
void |
toXml(java.lang.StringBuffer b,
int indent)
Generate the XML rendering of the data, required by the XmlObject interface. |
Methods inherited from class com.waveset.util.AbstractXmlObject |
addXmlHeader, cloneObject, dump, dumpFile, getReference, println, setTrace, toIdentityString, toVerboseString, toVerboseString, toXml, toXml, toXml |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
Constructor Detail |
public Binary(byte[] data)
public Binary(java.lang.String data) throws WavesetException
data
-
WavesetException
public Binary(java.io.InputStream in) throws IOException
in
- public Binary(java.io.InputStream in, boolean close) throws IOException
in
- Source of bytes to encode..close
- Close the InputStream or not..public Binary(org.w3c.dom.Element e) throws WavesetException
public Binary(javax.activation.DataSource dataSource) throws IOException
dataSource
-
IOException
Method Detail |
public boolean isNull()
public byte[] toDecodedByteArray()
public java.lang.String toEncodedString()
public java.lang.String toString()
public boolean equals(java.lang.Object other)
public java.lang.String getElementName()
getElementName
in interface XmlObject
getElementName
in class AbstractXmlObject
public void toXml(java.lang.StringBuffer b, int indent)
toXml
in interface XmlObject
toXml
in class AbstractXmlObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |