Package dev.enola.common.convert
Interface ConverterIntoAppendable<I>
- All Superinterfaces:
ConverterInto<I,Appendable>
- All Known Subinterfaces:
IdConverter<I>,IRIConverter<I>,ObjectToStringBiConverter<T>,OptionalBiConverterIntoAppendable<I>,ThingIntoAppendableConverter,ThingsIntoAppendableConverter
- All Known Implementing Classes:
GexfGenerator,GraphCommonsJsonGenerator,GraphvizGenerator,IdConverterChain,IDIRI.ConverterX,JavaThingIntoRdfAppendableConverter,ObjectToStringBiConverterWithFormat,ObjectToStringWithToStringBiConverter,ProtoThingIntoJsonLdAppendableConverter,TemporalAccessorToStringConverter,ToStringThingIntoAppendableConverter,VisJsTimelineGenerator
Converts an object of type I into characters written to an Appendable.
The "context" of the conversion, if any, must be part of I.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanconvertInto(I from, Appendable into) Convert from an I into an O.Methods inherited from interface dev.enola.common.convert.ConverterInto
convertIntoOrThrow
-
Method Details
-
convertInto
Description copied from interface:ConverterIntoConvert from an I into an O.- Specified by:
convertIntoin interfaceConverterInto<I,Appendable> - 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
-