|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--net.jxta.endpoint.NewMessageElement
|
+--net.jxta.endpoint.NewTextMessageElement
|
+--net.jxta.endpoint.NewStringMessageElement
A Message Element using character strings for the element data.
| Field Summary | |
protected java.lang.String |
data
Deprecated. The data for this element. |
| Fields inherited from class net.jxta.endpoint.NewMessageElement |
name, properties, sig, type |
| Constructor Summary | |
NewStringMessageElement(java.lang.String name,
java.lang.String value,
NewMessageElement sig)
Deprecated. Create a new Message Element from the provided string. |
|
NewStringMessageElement(java.lang.String name,
java.lang.String value,
java.lang.String encoding,
NewMessageElement sig)
Deprecated. Create a new Message Element from the provided string. |
|
| Method Summary | |
boolean |
equals(java.lang.Object target)
Deprecated. Compare this MessageElement against another |
long |
getByteLength()
Deprecated. Returns the size of the element data. |
long |
getCharLength()
Deprecated. Returns the size of the element data in characters |
java.io.Reader |
getReader()
Deprecated. Returns a Reader containing the element data. |
java.io.InputStream |
getStream()
Deprecated. Returns a stream containing the element data. |
int |
hashCode()
Deprecated. Returns a hash code value for the object. |
void |
sendToStream(java.io.OutputStream sendTo)
Deprecated. Sends the element data to the specified stream |
void |
sendToWriter(java.io.Writer sendTo)
Deprecated. Sends the element character data to the specified writer |
java.lang.String |
toString()
Deprecated. Constructs a new String from the data contained by the element. |
| Methods inherited from class net.jxta.endpoint.NewTextMessageElement |
getFileExtension |
| Methods inherited from class net.jxta.endpoint.NewMessageElement |
clone, getMessageProperty, getMimeType, getName, getSequentialName, getSignature, getUniqueName, setMessageProperty |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.jxta.document.Document |
getMimeType |
| Field Detail |
protected java.lang.String data
| Constructor Detail |
public NewStringMessageElement(java.lang.String name,
java.lang.String value,
NewMessageElement sig)
name - Name of the Element. May be the empty string ("") or null if
the Element is not named.value - A String containing the contents of this element.sig - optional message digest/digital signature elemnent. If
no signature is to be specified, pass null.java.lang.IllegalArgumentException - if is null.
public NewStringMessageElement(java.lang.String name,
java.lang.String value,
java.lang.String encoding,
NewMessageElement sig)
throws java.io.UnsupportedEncodingException
name - Name of the Element. May be the empty string ("") or null if
the Element is not named.value - A String containing the contents of this element.encoding - Name of the character encoding to use. If null then the
system default encoding default will be used. (Using the default encoding
should be used with caution).sig - optional message digest/digital signature elemnent. If
no signature is to be specified, pass null.java.lang.IllegalArgumentException - if value is nulljava.io.UnsupportedEncodingException - if the specified encoding is not supported.| Method Detail |
public boolean equals(java.lang.Object target)
equals in class NewMessageElementtarget - The to compare against.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class NewMessageElementpublic long getByteLength()
getByteLength in class NewMessageElementpublic long getCharLength()
getCharLength in class NewTextMessageElement
public java.io.InputStream getStream()
throws java.io.IOException
getStream in class NewMessageElementjava.io.IOException - when there is a problem getting an InputStream.
public java.io.Reader getReader()
throws java.io.IOException
getReader in class NewTextMessageElementjava.io.IOException - when there is a problem getting a reader.
public void sendToStream(java.io.OutputStream sendTo)
throws java.io.IOException
sendToStream in class NewMessageElementsendTo - the output stream to send the data to.java.io.IOException - when there is a problem sending to the specified stream
public void sendToWriter(java.io.Writer sendTo)
throws java.io.IOException
sendToWriter in class NewTextMessageElementsendTo - the writer to send the data to.java.io.IOException - when there is a problem sending to the specified writer
|
Project JXTA | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||