|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.slide.content.NodeRevisionContent
Encapsultes the contents of a revision.
Constructor Summary | |
NodeRevisionContent()
|
Method Summary | |
char[] |
getContent()
Content accessor. |
byte[] |
getContentBytes()
Content accessor. |
static byte[] |
read(java.io.InputStream inputStream)
Read the data from the stream and return the result in a byte array. |
static char[] |
read(java.io.Reader reader)
Read the data from the reader and return the result in a char array. |
java.io.Reader |
readContent()
Content accessor. |
void |
setContent(byte[] contentBytes)
Content mutator. |
void |
setContent(char[] content)
Content mutator. |
void |
setContent(java.io.InputStream inputStream)
Content mutator. |
void |
setContent(java.io.Reader reader)
Content mutator. |
java.io.InputStream |
streamContent()
Content accessor. |
void |
validate()
Validate. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NodeRevisionContent()
Method Detail |
public char[] getContent()
public byte[] getContentBytes()
public java.io.Reader readContent() throws java.io.IOException
java.io.IOException
public java.io.InputStream streamContent() throws java.io.IOException
java.io.IOException
public void setContent(byte[] contentBytes)
contentBytes
- New contentpublic void setContent(char[] content)
content
- New contentpublic void setContent(java.io.Reader reader)
reader
- New readerpublic void setContent(java.io.InputStream inputStream)
inputStream
- New input streampublic void validate()
public static byte[] read(java.io.InputStream inputStream) throws java.io.IOException
java.io.IOException
public static char[] read(java.io.Reader reader) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |