|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.harvard.hul.ois.mets.helper.XmlStream
Class encapsulating an XML stream, either a String or a Reader.
| Constructor Summary | |
XmlStream(java.io.Reader reader)
Instantiate a XmlStream object with a content reader. |
|
XmlStream(java.lang.String content)
Instantiate a XmlStream object with string content. |
|
| Method Summary | |
void |
add(java.lang.String content)
Add additional PCDATA content. |
java.util.List |
getContent()
Get content model. |
void |
read(MetsReader r)
De-serialize this element and its content model. |
static XmlStream |
reader(MetsReader r)
Instantiate a XmlStream object de-serialized from the input stream. |
void |
write(MetsWriter w)
Serialize this element and its content model. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XmlStream(java.lang.String content)
content - String contentpublic XmlStream(java.io.Reader reader)
reader - Reader| Method Detail |
public java.util.List getContent()
getContent in interface MetsSerializablepublic void add(java.lang.String content)
content - PCDATA content
public static XmlStream reader(MetsReader r)
throws MetsException
r - Reader
MetsException - De-serializing exception
public void read(MetsReader r)
throws MetsException
read in interface MetsSerializabler - Reader
MetsException
public void write(MetsWriter w)
throws MetsException
write in interface MetsSerializablew - Writer
MetsException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||