- java.lang.Object
-
- com.gluonhq.connect.converter.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 standardInputStream
. 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 Summary
Constructors Constructor Description InputStreamInputConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getInputStream()
Returns the InputStream where this InputConverter will read its data from.void
setInputStream(InputStream inputStream)
Sets the InputStream to be used as the input source for this InputConverter.-
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.InputConverter
read
-
-
-
-
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.
-
-