Class InputStreamInputConverter<T>

  • Type Parameters:
    T - the type of the object that is read by this InputConverter
    All Implemented Interfaces:
    InputConverter<T>
    Direct Known Subclasses:
    JsonInputConverter, StringInputConverter, VoidInputConverter, XmlInputConverter

    public abstract class InputStreamInputConverter<T>
    extends Object
    implements InputConverter<T>
    An abstract helper class that defines an InputConverter of which the input source is a standard InputStream. This class can be extended by an implementation of InputConverter that makes use of an InputStream as its input source. The data that is being read from the InputStream can be used to convert it into an actual object.
    • Constructor Detail

      • InputStreamInputConverter

        public InputStreamInputConverter()
    • Method Detail

      • getInputStream

        public InputStream getInputStream()
        Returns the InputStream where this InputConverter will read its data from.
        Returns:
        The InputStream to use as the input source for this InputConverter.
      • setInputStream

        public void setInputStream​(InputStream inputStream)
        Sets the InputStream to be used as the input source for this InputConverter.
        Parameters:
        inputStream - The InputStream to use as the input source for this InputConverter.