@Component
public interface FedoraObjectSerializer
| Modifier and Type | Method and Description |
|---|---|
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
|
String |
getKey()
Get the key for the serializer (that will be
used at the REST API to identify the format)
|
String |
getMediaType()
Get the media type for the serialized output
(so we can send the right mime type as appropriate)
|
void |
serialize(org.fcrepo.kernel.FedoraObject obj,
OutputStream out)
Serialize a FedoraObject into some format, and write it
to the given OutputStream
|
String getKey()
String getMediaType()
void serialize(org.fcrepo.kernel.FedoraObject obj,
OutputStream out)
throws javax.jcr.RepositoryException,
IOException
obj - out - javax.jcr.RepositoryExceptionIOExceptionvoid deserialize(javax.jcr.Session session,
String path,
InputStream stream)
throws IOException,
javax.jcr.RepositoryException,
org.fcrepo.kernel.exception.InvalidChecksumException
session - path - stream - IOExceptionjavax.jcr.RepositoryExceptionorg.fcrepo.kernel.exception.InvalidChecksumExceptionCopyright © 2013–2014 DuraSpace, Inc.. All rights reserved.