public class XMLDatastreamProcessor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Datastream |
m_ds |
protected org.fcrepo.server.storage.types.XMLDatastreamProcessor.DS_TYPE |
m_dsType |
| Constructor and Description |
|---|
XMLDatastreamProcessor(Datastream ds)
Construct an XML Datastream Processor by wrapping an existing datastream
|
XMLDatastreamProcessor(String dsId)
Construct a new XML datastream processor and the associated datastream
using the datastream ID to determine the type (M or X) of datastream to
construct (see fedora.fcfg for configuring the default types)
|
| Modifier and Type | Method and Description |
|---|---|
Datastream |
getDatastream()
Get the datastream wrapped by this class
|
int |
getDSMDClass()
Get the DSMDClass of the datastream wrapped by this class
|
byte[] |
getXMLContent()
Get the XML content of the datastream wrapped by this class
|
byte[] |
getXMLContent(Context ctx) |
XMLDatastreamProcessor |
newVersion()
Return a new XML Datastream processor wrapping a new datastream.
|
void |
setDSMDClass(int DSMDClass)
Set the DSMDClass of the datastream wrapped by this class
|
void |
setXMLContent(byte[] xmlContent)
Update the XML content of the datastream wrapped by this class
|
protected Datastream m_ds
protected org.fcrepo.server.storage.types.XMLDatastreamProcessor.DS_TYPE m_dsType
public XMLDatastreamProcessor(String dsId)
dsId - public XMLDatastreamProcessor(Datastream ds)
ds - - datastream to wrappublic XMLDatastreamProcessor newVersion() throws ServerInitializationException, ModuleInitializationException
public byte[] getXMLContent()
public byte[] getXMLContent(Context ctx)
public Datastream getDatastream()
public void setXMLContent(byte[] xmlContent)
xmlContent - public void setDSMDClass(int DSMDClass)
DSMDClass - public int getDSMDClass()
Copyright © 2013 DuraSpace. All Rights Reserved.