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, wait
canSerialize, 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
FedoraObjectSerializer
serialize
in interface FedoraObjectSerializer
javax.jcr.RepositoryException
IOException
InvalidSerializationFormatException
public abstract void deserialize(javax.jcr.Session session, String path, InputStream stream) throws IOException, javax.jcr.RepositoryException, InvalidChecksumException, InvalidSerializationFormatException
FedoraObjectSerializer
deserialize
in interface FedoraObjectSerializer
IOException
javax.jcr.RepositoryException
InvalidChecksumException
InvalidSerializationFormatException
Copyright © 2013-2015 DuraSpace, Inc.. All Rights Reserved.