public abstract class BaseFedoraObjectSerializer extends Object implements FedoraObjectSerializer
| Modifier and Type | Field and Description |
|---|---|
protected javax.jcr.Repository |
repo |
JCR_XML| Constructor and Description |
|---|
BaseFedoraObjectSerializer() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
deserialize(javax.jcr.Session session,
String path,
InputStream stream)
Read the given InputStream and de-serialize the content
into new nodes in the given session using the given path
as the parent node
|
abstract void |
serialize(FedoraResource obj,
OutputStream out,
boolean skipBinary,
boolean recurse)
Serialize a FedoraObject into some format with options for recurse
and skipBinary, and write it to the given OutputStream
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanSerialize, getKey, getMediaType@Autowired protected javax.jcr.Repository repo
public BaseFedoraObjectSerializer()
public abstract void serialize(FedoraResource obj, OutputStream out, boolean skipBinary, boolean recurse) throws javax.jcr.RepositoryException, IOException, InvalidSerializationFormatException
FedoraObjectSerializerserialize in interface FedoraObjectSerializerjavax.jcr.RepositoryExceptionIOExceptionInvalidSerializationFormatExceptionpublic abstract void deserialize(javax.jcr.Session session, String path, InputStream stream) throws IOException, javax.jcr.RepositoryException, InvalidChecksumException, InvalidSerializationFormatException
FedoraObjectSerializerdeserialize in interface FedoraObjectSerializerIOExceptionjavax.jcr.RepositoryExceptionInvalidChecksumExceptionInvalidSerializationFormatExceptionCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.