|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.harvard.hul.ois.mets.helper.Base64
Class encapsulating a Base64-encoded content string. For reference, see RFC 2045.
| Constructor Summary | |
Base64()
Instantiate a Base64 object. |
|
Base64(java.io.InputStream stream)
Instantiate a Base64 object with a content stream. |
|
Base64(java.lang.String content)
Instantiate a Base64 object with encoded content. |
|
| Method Summary | |
void |
add(java.lang.String content)
Add additional Base64-encoded content. |
void |
decode(MetsWriter w)
De-serialize this element and its content model as Base64. |
void |
encode(MetsWriter w)
Serialize this element and its content model as Base64. |
java.util.List |
getContent()
Get content model. |
void |
read(MetsReader r)
De-serialize this element and its content model. |
static Base64 |
reader(MetsReader r)
Instantiate a Base64 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 Base64()
public Base64(java.lang.String content)
content - Encoded contentpublic Base64(java.io.InputStream stream)
stream - Input stream| Method Detail |
public java.util.List getContent()
getContent in interface MetsSerializablepublic void add(java.lang.String content)
content - Encoded content
public void decode(MetsWriter w)
throws MetsException
w - Writer
MetsException
public void encode(MetsWriter w)
throws MetsException
w - Writer
MetsException
public static Base64 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 | |||||||||