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 void
addComponent
(FileComponent component) protected void
protected void
addEle
(String ele, LinkedHashMap<String, String> map) protected void
protected void
addlvl()
protected void
protected void
protected void
addTail()
protected void
static void
buildManifest
(VersionMap versionMap, File outFile) static void
buildManifest
(VersionMap versionMap, OutputStream outStream) protected String
protected void
protected void
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
-
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
-