JXTA

net.jxta.document
Interface TextDocumentReaderIO

All Known Subinterfaces:
StructuredTextDocument<T>, TextDocument, XMLDocument<X>
All Known Implementing Classes:
StringMessageElement, TextDocumentMessageElement, TextMessageElement

public interface TextDocumentReaderIO

Provides Reader/Writer based interfaces for manipulating TextDocuments.


Method Summary
 Reader getReader()
          Returns the sequence of characters which represents the content of the TextDocument.
 void sendToWriter(Writer writer)
          Send the contents of this TextDocument to the specified Writer.
 

Method Detail

getReader

Reader getReader()
                 throws IOException
Returns the sequence of characters which represents the content of the TextDocument.

Returns:
An Reader containing the characters of the TextDocument.
Throws:
IOException - If an I/O error occurs.

sendToWriter

void sendToWriter(Writer writer)
                  throws IOException
Send the contents of this TextDocument to the specified Writer.

Parameters:
writer - The Writer to which the characters of the TextDocument will be written.
Throws:
IOException - If an I/O error occurs.

JXSE