public interface InputStreamConverter<TO> extends Converter<InputStream,TO>
InputStreams to specific objects.Converter.MatchRating<FROM>| Modifier and Type | Method and Description |
|---|---|
InputStream |
convertBackward(TO to,
String... params)
Creates an
InputStream with the given object TO as source. |
TO |
convertForward(InputStream from,
String... params)
Creates an object
TO from the given InputStream. |
TO convertForward(InputStream from, String... params) throws ConversionException
TO from the given InputStream. The InputStream shall not
be closed by implementations. The users of this operation have to take care of the InputStream that
is provided to this operation, thus they must take care of their resources themselves.convertForward in interface Converter<InputStream,TO>from - the InputStream that provides the information to create TOparams - optional parameters that may be passed to the converter that may influence conversionInputStreamConversionException - if any error occurs during conversionInputStream convertBackward(TO to, String... params) throws ConversionException
InputStream with the given object TO as source. The InputStream
shall not be closed by implementations. The users of this operation have to take care of the returned
InputStream, thus they must take care of the resources themselves.convertBackward in interface Converter<InputStream,TO>to - the object TO that shall be turned into an InputStreamparams - optional parameters that may be passed to the converter that may influence conversionInputStream providing the data of the given object TOConversionException - if any error occurs during conversionCopyright © 2012–2026 cismet GmbH. All rights reserved.