|
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 TextDocument
toString
in class Object
public MimeMediaType getMimeType()
getMimeType
in interface Document
public String getFileExtension()
getFileExtension
in interface Document
public Element createElement(Object key)
createElement
in interface StructuredDocument
public Element createElement(Object key, Object val)
createElement
in interface StructuredDocument
public 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 Document
IOException
public void sendToStream(OutputStream stream) throws IOException
sendToStream
in interface Document
IOException
public Reader getReader()
getReader
in interface TextDocument
public void sendToWriter(Writer stream) throws IOException
sendToWriter
in interface TextDocument
IOException
|
JXTA J2SE | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |