Package org.cdlib.mrt.cloud
Class ManifestStr
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.cdlib.mrt.cloud.ManifestStr
- All Implemented Interfaces:
ContentHandler,DTDHandler,EntityResolver,ErrorHandler
This object imports the formatTypes.xml and builds a local table of supported format types.
Note, that the ObjectFormat is being deprecated and replaced by a single format id (fmtid).
This change is happening because formatName is strictly a description and has no functional
use. The scienceMetadata flag is being dropped because the ORE Resource Map is more flexible
and allows for a broader set of data type.
- Author:
- dloy
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionManifestStr(VersionMap versionMap, File outFile) ManifestStr(VersionMap versionMap, OutputStream outStream) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddComponent(FileComponent component) protected voidprotected voidaddEle(String ele, LinkedHashMap<String, String> map) protected voidprotected voidaddlvl()protected voidprotected voidprotected voidaddTail()protected voidstatic voidbuildManifest(VersionMap versionMap, File outFile) static voidbuildManifest(VersionMap versionMap, OutputStream outStream) protected Stringprotected voidprotected voidMethods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warningMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
versionMap
-
outStream
-
-
Constructor Details
-
ManifestStr
- Throws:
TException
-
ManifestStr
- Throws:
TException
-
-
Method Details
-
buildManifest
- Throws:
TException
-
buildManifest
- Throws:
TException
-
enc
-
out
-
addEle
-
addEle
-
addSimple
- Throws:
TException
-
endEle
-
addlvl
protected void addlvl() -
addHeader
protected void addHeader() -
addTail
protected void addTail() -
addObject
- Throws:
TException
-
addVersions
- Throws:
TException
-
addComponent
- Throws:
TException
-