@Component public class JcrXmlSerializer extends BaseFedoraObjectSerializer
repoJCR_XML| Constructor and Description |
|---|
JcrXmlSerializer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSerialize(FedoraResource resource)
Determines whether this FedoraObjectSerializer can be used to
serialize the given resource.
|
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(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
|
public JcrXmlSerializer()
public String getKey()
FedoraObjectSerializerpublic String getMediaType()
FedoraObjectSerializerpublic boolean canSerialize(FedoraResource resource)
FedoraObjectSerializerFedoraObjectSerializer.serialize(org.fcrepo.kernel.models.FedoraResource, java.io.OutputStream, boolean, boolean).public void serialize(FedoraResource obj, OutputStream out, boolean skipBinary, boolean recurse) throws javax.jcr.RepositoryException, IOException, InvalidSerializationFormatException
FedoraObjectSerializerserialize in interface FedoraObjectSerializerserialize in class BaseFedoraObjectSerializerjavax.jcr.RepositoryExceptionIOExceptionInvalidSerializationFormatExceptionpublic void deserialize(javax.jcr.Session session, String path, InputStream stream) throws javax.jcr.RepositoryException, IOException, InvalidSerializationFormatException
FedoraObjectSerializerdeserialize in interface FedoraObjectSerializerdeserialize in class BaseFedoraObjectSerializerjavax.jcr.RepositoryExceptionIOExceptionInvalidSerializationFormatExceptionCopyright © 2013-2014 DuraSpace, Inc.. All Rights Reserved.