Package dev.enola.thing.io
Class Loader
java.lang.Object
dev.enola.thing.io.Loader
- All Implemented Interfaces:
ConverterInto<Stream<URI>,ThingRepositoryStore>
- Direct Known Subclasses:
RdfLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanconvertInto(Stream<URI> stream, ThingRepositoryStore store) Convert from an I into an O.booleanload(String uri, ThingRepositoryStore store) booleanload(URI uri, ThingRepositoryStore store) loadAtLeastOneThing(URI uri) 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
convertIntoOrThrow
-
Constructor Details
-
Loader
-
-
Method Details
-
convertInto
public boolean convertInto(Stream<URI> stream, ThingRepositoryStore store) throws ConversionException, IOException Description copied from interface:ConverterIntoConvert from an I into an O.- Specified by:
convertIntoin interfaceConverterInto<Stream<URI>,ThingRepositoryStore> - Parameters:
stream- the input to convertstore- 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
-
load
- Throws:
IOException
-
load
- Throws:
IOException
-
loadAtLeastOneThing
- Throws:
IOException
-