|
Project JXTA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.jxta.impl.document.TextElementCommon
net.jxta.impl.document.PlainTextElement
net.jxta.impl.document.PlainTextDocument
public class PlainTextDocument
This class is an implementation of the StructuredDocument interface using simple text
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.jxta.impl.document.TextDocumentCommon |
|---|
TextDocumentCommon.Utils |
| Field Summary | |
|---|---|
static StructuredDocumentFactory.TextInstantiator |
INSTANTIATOR
|
| Fields inherited from class net.jxta.impl.document.PlainTextElement |
|---|
doc, name, parent, val |
| Constructor Summary | |
|---|---|
PlainTextDocument(MimeMediaType mimeType,
String type)
Creates new PlainTextDocument |
|
PlainTextDocument(MimeMediaType mimeType,
String type,
String value)
Creates new PlainTextDocument with a value for the root element |
|
| Method Summary | |
|---|---|
Element |
createElement(Object key)
|
Element |
createElement(Object key,
Object val)
|
TextElement |
createElement(String name)
|
TextElement |
createElement(String name,
String val)
|
String |
getFileExtension()
|
MimeMediaType |
getMimeType()
get Type |
Reader |
getReader()
|
InputStream |
getStream()
|
void |
sendToStream(OutputStream stream)
|
void |
sendToWriter(Writer stream)
|
String |
toString()
|
| Methods inherited from class net.jxta.impl.document.PlainTextElement |
|---|
addAttribute, addAttribute, appendChild, equals, getAttribute, getAttributes, getChildren, getChildren, getName, getParent, getRoot, getTextValue, printNice |
| Methods inherited from class net.jxta.impl.document.TextElementCommon |
|---|
appendChild, getChildren, getKey, getValue |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.jxta.document.Element |
|---|
appendChild, getChildren, getChildren, getKey, getParent, getRoot, getValue |
| Methods inherited from interface net.jxta.document.TextElement |
|---|
appendChild, getChildren, getName, getTextValue |
| Methods inherited from interface net.jxta.document.Element |
|---|
appendChild, getChildren, getChildren, getKey, getParent, getRoot, getValue |
| Field Detail |
|---|
public static final StructuredDocumentFactory.TextInstantiator INSTANTIATOR
| Constructor Detail |
|---|
public PlainTextDocument(MimeMediaType mimeType,
String type)
public PlainTextDocument(MimeMediaType mimeType,
String type,
String value)
| Method Detail |
|---|
public String toString()
toString in interface TextDocumenttoString in class Objectpublic MimeMediaType getMimeType()
getMimeType in interface Documentpublic String getFileExtension()
getFileExtension in interface Documentpublic Element createElement(Object key)
createElement in interface StructuredDocument
public Element createElement(Object key,
Object val)
createElement in interface StructuredDocumentpublic TextElement createElement(String name)
createElement in interface StructuredTextDocument
public TextElement createElement(String name,
String val)
createElement in interface StructuredTextDocument
public InputStream getStream()
throws IOException
getStream in interface DocumentIOException
public void sendToStream(OutputStream stream)
throws IOException
sendToStream in interface DocumentIOExceptionpublic Reader getReader()
getReader in interface TextDocument
public void sendToWriter(Writer stream)
throws IOException
sendToWriter in interface TextDocumentIOException
|
JXTA J2SE | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||