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
obj
- the objout
- the outskipBinary
- skip binaryrecurse
- the recursejavax.jcr.RepositoryException
- if repository exception occurredIOException
- if IO exception occurredInvalidSerializationFormatException
- if invalid serialization occurredpublic abstract void deserialize(javax.jcr.Session session, String path, InputStream stream) throws IOException, javax.jcr.RepositoryException, InvalidChecksumException, InvalidSerializationFormatException
FedoraObjectSerializer
deserialize
in interface FedoraObjectSerializer
session
- the sessionpath
- the pathstream
- the streamIOException
- if IO exception occurredjavax.jcr.RepositoryException
- if repository exception occurredInvalidChecksumException
- if invalid checksum exception occurredInvalidSerializationFormatException
- if invadlid serialization occurredCopyright © 2013–2015 DuraSpace, Inc.. All rights reserved.