|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.storage.translation.AtomDOSerializer
public class AtomDOSerializer
Serializes a Fedora Object in Atom with Threading Extensions.
A Fedora Digital Object is represented as an atom:feed and Datastreams are represented as an atom:entries.
The hierarchy of Datastreams their Datastream Versions is
represented via the Atom Threading Extensions.
For convenience, a datastream entry references its latest datastream
version entry with an atom:link element. For example, a DC datastream
entry with a reference to its most recent version:
<link href="info:fedora/demo:foo/DC/2008-04-01T12:30:15.123" rel="alternate"/>
Each datastream version refers to its parent datastream via a
thr:in-reply-to element. For example, the entry for a DC datastream
version would include:
<thr:in-reply-to ref="info:fedora/demo:foo/DC"/>
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.fcrepo.common.Constants |
|---|
Constants.FedoraHome |
| Field Summary | |
|---|---|
static XMLFormat |
DEFAULT_FORMAT
The format this serializer will write if unspecified at construction. |
protected org.apache.abdera.model.Feed |
m_feed
|
| Constructor Summary | |
|---|---|
AtomDOSerializer()
|
|
AtomDOSerializer(XMLFormat format)
|
|
| Method Summary | |
|---|---|
DOSerializer |
getInstance()
Creates a new serializer that writes the same format as this one. |
void |
serialize(DigitalObject obj,
OutputStream out,
String encoding,
int transContext)
Serializes the given object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final XMLFormat DEFAULT_FORMAT
protected org.apache.abdera.model.Feed m_feed
| Constructor Detail |
|---|
public AtomDOSerializer()
public AtomDOSerializer(XMLFormat format)
| Method Detail |
|---|
public DOSerializer getInstance()
getInstance in interface DOSerializer
public void serialize(DigitalObject obj,
OutputStream out,
String encoding,
int transContext)
throws ObjectIntegrityException,
StreamIOException,
UnsupportedEncodingException
serialize in interface DOSerializerobj - the object to serialize.out - where to send the output to (auto-closed when finished).encoding - the character encoding if the format is text-based.transContext - the translation context.
ObjectIntegrityException - if the given object is in such a state that serialization can't
be performed.
StreamIOException - if there is an error writing to the stream.
UnsupportedEncodingException - if the encoding is not supported by the JVM.DOTranslationUtility.SERIALIZE_EXPORT_ARCHIVE,
DOTranslationUtility.SERIALIZE_EXPORT_PUBLIC,
DOTranslationUtility.SERIALIZE_EXPORT_MIGRATE,
DOTranslationUtility.SERIALIZE_STORAGE_INTERNAL
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||