Class 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 standard InputStream. 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 Detail

      • InputStreamIterableInputConverter

        public InputStreamIterableInputConverter()
    • 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.