|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xoe.core.dom.XNode | +--org.xoe.core.dom.ParentNode | +--org.xoe.core.dom.XElement | +--org.xoe.core.content.ContentElement
The ContentElement
class represents the atomic unit
of content handling in the XOE system.
All content used by
the system, whether local or on the Web, is at some point in it's
lifecycle managed as an instance of this class.
Field Summary | |
protected Date |
lastModified
the date this object was last modified |
Fields inherited from class org.xoe.core.dom.XNode |
callbacks |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Method Summary | |
void |
clearCachedData()
|
org.w3c.dom.Node |
cloneNode(boolean deep)
|
static String |
encodeName(String s)
Returns a string which is the encoded representation of the string passed in. |
int |
getContentLength()
Returns the size of the data associated with this content. |
InputStream |
getInputStream()
Returns the InputStream associated with this content. |
Date |
getLastModified()
Returns the date this object was last changed |
ContentType |
getType()
Returns the type of the data associated with this content. |
URL |
getURL()
Returns the URL associated with this content. |
protected void |
setLength(long len)
Sets the size of the data associated with this content. |
Methods inherited from class org.xoe.core.dom.XElement |
getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getAttributes, getElementsByTagName, getElementsByTagNameNS, getLocalName, getNamespaceURI, getNodeName, getNodeType, getPrefix, getTagName, hasAttribute, hasAttributeNS, hasAttributes, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setNodeName, setPrefix |
Methods inherited from class org.xoe.core.dom.ParentNode |
appendChild, getChildNodes, getFirstChild, getLastChild, getLength, hasChildNodes, insertBefore, item, removeChild, replaceChild, reset |
Methods inherited from class org.xoe.core.dom.XNode |
getCallback, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, isSupported, setCallback, setNodeValue, setParentNode, supports, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.w3c.dom.Node |
appendChild, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeValue, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, isSupported, removeChild, replaceChild, setNodeValue |
Field Detail |
protected Date lastModified
Method Detail |
public URL getURL()
public void clearCachedData()
public InputStream getInputStream() throws IOException
IOException
- if an I/O error occursprotected void setLength(long len)
len
- the size, in bytes, of the content's datapublic int getContentLength()
public ContentType getType() throws IOException
public Date getLastModified()
public static String encodeName(String s)
s
- a string representing the name to be encodedpublic org.w3c.dom.Node cloneNode(boolean deep)
cloneNode
in class org.xoe.core.dom.XElement
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |