public abstract class BaseFedoraObjectSerializer extends Object implements FedoraObjectSerializer
| Modifier and Type | Field and Description |
|---|---|
protected org.fcrepo.kernel.services.DatastreamService |
dsService |
protected org.fcrepo.kernel.services.ObjectService |
objService |
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(org.fcrepo.kernel.FedoraObject 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, waitgetKey, getMediaType@Autowired protected javax.jcr.Repository repo
@Autowired protected org.fcrepo.kernel.services.ObjectService objService
@Autowired protected org.fcrepo.kernel.services.DatastreamService dsService
public abstract void serialize(org.fcrepo.kernel.FedoraObject obj,
OutputStream out,
boolean skipBinary,
boolean recurse)
throws javax.jcr.RepositoryException,
IOException
FedoraObjectSerializerserialize in interface FedoraObjectSerializerjavax.jcr.RepositoryExceptionIOExceptionpublic abstract void deserialize(javax.jcr.Session session,
String path,
InputStream stream)
throws IOException,
javax.jcr.RepositoryException,
org.fcrepo.kernel.exception.InvalidChecksumException
FedoraObjectSerializerdeserialize in interface FedoraObjectSerializerIOExceptionjavax.jcr.RepositoryExceptionorg.fcrepo.kernel.exception.InvalidChecksumExceptionCopyright © 2013–2014 DuraSpace, Inc.. All rights reserved.