|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.fcrepo.server.storage.translation.METSFedoraExtDODeserializer
public class METSFedoraExtDODeserializer
Deserializes objects in the constructor-provided version of the METS Fedora Extension format.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.fcrepo.common.Constants |
|---|
Constants.FedoraHome |
| Field Summary | |
|---|---|
static XMLFormat |
DEFAULT_FORMAT
The format this deserializer will read if unspecified at construction. |
| Constructor Summary | |
|---|---|
METSFedoraExtDODeserializer()
Creates a deserializer that reads the default Fedora METS Extension format. |
|
METSFedoraExtDODeserializer(XMLFormat format)
Creates a deserializer that reads the given Fedora METS Extension format. |
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int length)
|
void |
deserialize(InputStream in,
DigitalObject obj,
String encoding,
int transContext)
Deserializes the given stream. |
void |
endElement(String uri,
String localName,
String qName)
|
void |
endPrefixMapping(String prefix)
|
DODeserializer |
getInstance()
Creates a new deserializer that the same format as this one. |
void |
startElement(String uri,
String localName,
String qName,
Attributes a)
|
void |
startPrefixMapping(String prefix,
String uri)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endDocument, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final XMLFormat DEFAULT_FORMAT
| Constructor Detail |
|---|
public METSFedoraExtDODeserializer()
public METSFedoraExtDODeserializer(XMLFormat format)
format - the version-specific Fedora METS Extension format.
IllegalArgumentException - if format is not a known Fedora METS Extension format.| Method Detail |
|---|
public DODeserializer getInstance()
getInstance in interface DODeserializer
public void deserialize(InputStream in,
DigitalObject obj,
String encoding,
int transContext)
throws ObjectIntegrityException,
StreamIOException,
UnsupportedEncodingException
deserialize in interface DODeserializerin - the stream to read from (closed when finished).obj - the object to deserialize into.encoding - the character encoding if the format is text-based.transContext - the translation context.
ObjectIntegrityException - if the stream does not properly encode an object.
StreamIOException - if there is an error reading from the stream.
UnsupportedEncodingException - if the encoding is not supported by the JVM.DOTranslationUtility.DESERIALIZE_INSTANCE
public void startPrefixMapping(String prefix,
String uri)
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class DefaultHandlerpublic void endPrefixMapping(String prefix)
endPrefixMapping in interface ContentHandlerendPrefixMapping in class DefaultHandler
public void startElement(String uri,
String localName,
String qName,
Attributes a)
throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXException
public void characters(char[] ch,
int start,
int length)
characters in interface ContentHandlercharacters in class DefaultHandler
public void endElement(String uri,
String localName,
String qName)
throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||