|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Node
An interface which should be implemented by classes representing a node, that is a resource, which is versionable and has some text content.
| Method Summary | |
|---|---|
void |
copyToFile(java.lang.String filename)
Copies this node's content to the given file. |
java.lang.String |
getContent()
Gets the content of this node, represented as a string. |
byte[] |
getContentByteArray()
Gets the content of this node as a byte array. |
java.io.InputStream |
getContentInputStream()
Gets the content of this node as an input stream. |
long |
getCreated()
Gets the time of creation of this node. |
java.util.Date |
getCreatedDate()
Gets the time of creation of this node, represented as a date object. |
History |
getHistory()
Gets a history of this node. |
long |
getLength()
Gets the length of this node's content. |
java.lang.String |
getLogMessage()
Gets a log message with which this node/ directory was saved. |
java.lang.String |
getMimeType()
Gets the mime type of this node. |
java.io.OutputStream |
getOutputStream()
Gets an output stream for writing data to the node. |
int |
getRevisionNumber()
Gets the revision number of this node. |
void |
setContent(byte[] bytes)
Sets this node's content, given as an array of bytes. |
void |
setContent(java.io.InputStream is)
Sets this node's content, reading from the given input stream. |
void |
setContent(java.lang.String content)
Sets the content of this node. |
| Methods inherited from interface org.jboss.shotoku.Resource |
|---|
copyTo, delete, deleteProperty, getContentManager, getFullName, getLastModification, getLastModificationDate, getName, getParent, getProperties, getProperty, hasModifications, moveTo, save, setProperty |
| Method Detail |
|---|
java.lang.String getContent()
throws RepositoryException
RepositoryExceptionvoid setContent(java.lang.String content)
content - New content of this node.void setContent(java.io.InputStream is)
is - Input stream to read from.void setContent(byte[] bytes)
bytes - Byte array of new content.java.io.OutputStream getOutputStream()
History getHistory()
throws RepositoryException
RepositoryException
int getRevisionNumber()
throws RepositoryException
RepositoryException
java.lang.String getLogMessage()
throws RepositoryException
RepositoryException
void copyToFile(java.lang.String filename)
throws RepositoryException
filename - Name of the file to which to copy this node's content.
RepositoryException
java.io.InputStream getContentInputStream()
throws RepositoryException
RepositoryException
byte[] getContentByteArray()
throws RepositoryException
RepositoryException
long getLength()
throws RepositoryException
RepositoryExceptionjava.lang.String getMimeType()
long getCreated()
throws RepositoryException
RepositoryException
java.util.Date getCreatedDate()
throws RepositoryException
RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||