Module com.gluonhq.connect
Package com.gluonhq.connect.converter
Class InputStreamIterableInputConverter<E>
- java.lang.Object
-
- com.gluonhq.connect.converter.InputStreamIterableInputConverter<E>
-
- Type Parameters:
E
- the type of the objects that are read by this IterableInputConverter
- All Implemented Interfaces:
IterableInputConverter<E>
- Direct Known Subclasses:
JsonIterableInputConverter
public abstract class InputStreamIterableInputConverter<E> extends Object implements IterableInputConverter<E>
An abstract helper class that defines an IterableInputConverter of which the input source is a standardInputStream
. This class can be extended by an implementation of IterableInputConverter that makes use of an InputStream as its input source. The created Iterator can then iterate over the list of objects that are being converted from the data that is being read from the InputStream.
-
-
Constructor Summary
Constructors Constructor Description InputStreamIterableInputConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getInputStream()
Returns the InputStream where this IterableInputConverter will read its data from.void
setInputStream(InputStream inputStream)
Sets the InputStream to be used as the input source for this IterableInputConverter.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.gluonhq.connect.converter.IterableInputConverter
iterator
-
-
-
-
Method Detail
-
getInputStream
public InputStream getInputStream()
Returns the InputStream where this IterableInputConverter will read its data from.- Returns:
- The InputStream to use as the input source for this IterableInputConverter.
-
setInputStream
public void setInputStream(InputStream inputStream)
Sets the InputStream to be used as the input source for this IterableInputConverter.- Parameters:
inputStream
- The InputStream to use as the input source for this IterableInputConverter.
-
-