|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.jxta.impl.document.TextElementCommon | +--net.jxta.impl.document.LiteXMLElement | +--net.jxta.impl.document.LiteXMLDocument
This class is an implementation of the StructuredDocument interface using a simplified XML implementation
Inner classes inherited from class net.jxta.impl.document.LiteXMLElement |
LiteXMLElement.charRange,
LiteXMLElement.tagRange |
Field Summary | |
protected java.lang.String |
docContent
|
protected net.jxta.document.MimeMediaType |
mimeType
|
Fields inherited from class net.jxta.impl.document.LiteXMLElement |
doc,
loc,
parent |
Constructor Summary | |
LiteXMLDocument(net.jxta.document.MimeMediaType mimeType,
java.io.InputStream in)
Creates new LiteXMLDocument |
|
LiteXMLDocument(net.jxta.document.MimeMediaType mimeType,
java.io.Reader in)
Creates new LiteXMLDocument |
|
LiteXMLDocument(net.jxta.document.MimeMediaType mimeType,
java.lang.String type)
Creates new LiteXMLDocument |
Method Summary | |
protected net.jxta.document.TextElement |
createElement(LiteXMLElement.tagRange loc)
create a new element with value |
net.jxta.document.Element |
createElement(java.lang.Object key)
create a new element without value |
net.jxta.document.Element |
createElement(java.lang.Object key,
java.lang.Object val)
create a new element with value |
net.jxta.document.TextElement |
createElement(java.lang.String name)
create a new element without value |
net.jxta.document.TextElement |
createElement(java.lang.String name,
java.lang.String val)
create a new element with value |
protected LiteXMLElement.charRange |
getDocType(java.lang.String source,
boolean wholeElement)
|
net.jxta.document.MimeMediaType |
getMimeType()
get Mime Type |
java.io.Reader |
getReader()
Gets a reader for the document content. |
java.io.InputStream |
getStream()
Gets an inputStream for the document content. |
static net.jxta.document.MimeMediaType[] |
getSupportedMimeTypes()
Returns the MIME Media types supported by this this Document per . |
void |
sendToStream(java.io.OutputStream stream)
Sends the document content to a stream. |
void |
sendToWriter(java.io.Writer stream)
Sends the document content to a writer. |
Methods inherited from class net.jxta.impl.document.LiteXMLElement |
addChildTags,
adjustLocations,
appendChild,
decodeEscaped,
encodeEscaped,
equals,
getChildren,
getChildren,
getName,
getParent,
getRoot,
getTagRanges,
getTextValue,
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,
toString,
wait,
wait,
wait |
Field Detail |
protected java.lang.String docContent
protected net.jxta.document.MimeMediaType mimeType
Constructor Detail |
public LiteXMLDocument(net.jxta.document.MimeMediaType mimeType, java.lang.String type)
public LiteXMLDocument(net.jxta.document.MimeMediaType mimeType, java.io.InputStream in)
public LiteXMLDocument(net.jxta.document.MimeMediaType mimeType, java.io.Reader in)
Method Detail |
public static net.jxta.document.MimeMediaType[] getSupportedMimeTypes()
public net.jxta.document.MimeMediaType getMimeType()
public net.jxta.document.Element createElement(java.lang.Object key)
public net.jxta.document.Element createElement(java.lang.Object key, java.lang.Object val)
public net.jxta.document.TextElement createElement(java.lang.String name)
public net.jxta.document.TextElement createElement(java.lang.String name, java.lang.String val)
protected net.jxta.document.TextElement createElement(LiteXMLElement.tagRange loc)
public java.io.Reader getReader()
public java.io.InputStream getStream()
public void sendToWriter(java.io.Writer stream) throws java.io.IOException
public void sendToStream(java.io.OutputStream stream) throws java.io.IOException
protected LiteXMLElement.charRange getDocType(java.lang.String source, boolean wholeElement)
|
Project JXTA | ||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |