Package dev.enola.model.enola.mediatype
Class TikaMediaTypesThingConverter
java.lang.Object
dev.enola.model.enola.mediatype.TikaMediaTypesThingConverter
- All Implemented Interfaces:
ConverterInto<URI,,ThingRepositoryStore> UriIntoThingConverter
Converts Tika Media Types into Enola Things (AKA RDF / TTL).
Tika reads these from its (builtin) MIME Types XML file which corresponds to the freedesktop.org MIME Info Spec.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconvertInto(URI from, ThingRepositoryStore into) Convert from an I into an O.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.enola.common.convert.ConverterInto
convertIntoOrThrowMethods inherited from interface dev.enola.thing.io.UriIntoThingConverter
addOrigin
-
Field Details
-
IRI
-
-
Constructor Details
-
TikaMediaTypesThingConverter
public TikaMediaTypesThingConverter()
-
-
Method Details
-
convertInto
public boolean convertInto(URI from, ThingRepositoryStore into) throws ConversionException, IOException Description copied from interface:ConverterIntoConvert from an I into an O.- Specified by:
convertIntoin interfaceConverterInto<URI,ThingRepositoryStore> - Parameters:
from- the input to convertinto- the destination where to output- Returns:
- true if conversion was successful, false if this converter cannot handle it; see
ConverterIntoChain - Throws:
ConversionException- in case of conversion problems or technical failures to read from I or write to OIOException- TODO wrap IOException into ConversionException and remove throws
-