Package dev.enola.common.convert
Interface CatchingConverterInto<I,O>
- Type Parameters:
I- the input typeO- the output type
- All Superinterfaces:
ConverterInto<I,O>
- All Known Subinterfaces:
CatchingResourceConverter
- All Known Implementing Classes:
CharResourceConverter,GexfResourceConverter,GraphCommonsResourceConverter,GraphvizResourceConverter,IdempotentCopyingResourceNonConverter,MessageResourceConverter,RdfResourceConverter,RdfResourceIntoProtoThingResourceConverter,TikaResourceIntoRdfResourceConverter,XmlResourceConverter,XmlResourceParser,YamlJsonResourceConverter
ConverterInto which catches any failures and wraps them into ConversionException.-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanconvertInto(I from, O into) Convert from an I into an O.booleanconvertIntoThrows(I from, O into) Methods inherited from interface dev.enola.common.convert.ConverterInto
convertIntoOrThrow
-
Method Details
-
convertIntoThrows
- Throws:
Exception
-
convertInto
Description copied from interface:ConverterIntoConvert from an I into an O.- Specified by:
convertIntoin interfaceConverterInto<I,O> - 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 O
-