Module com.gluonhq.connect
Package com.gluonhq.connect.converter
Class OutputStreamOutputConverter<T>
- java.lang.Object
-
- com.gluonhq.connect.converter.OutputStreamOutputConverter<T>
-
- Type Parameters:
T
- the type of the object that is written by this OutputConverter
- All Implemented Interfaces:
OutputConverter<T>
- Direct Known Subclasses:
JsonOutputConverter
,StringOutputConverter
,VoidOutputConverter
public abstract class OutputStreamOutputConverter<T> extends Object implements OutputConverter<T>
An abstract helper class that defines an OutputConverter of which the output source is a standardOutputStream
. This class can be extended by an implementation of OutputConverter that makes use of an OutputStream as its output source. The object can then be converted into data that is written directly into the OutputStream.
-
-
Constructor Summary
Constructors Constructor Description OutputStreamOutputConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStream
getOutputStream()
Returns the OutputStream where this OutputConverter will write the converted object to.void
setOutputStream(OutputStream outputStream)
Sets the OutputStream to be used as the output source for this OutputConverter.-
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.OutputConverter
write
-
-
-
-
Method Detail
-
getOutputStream
public OutputStream getOutputStream()
Returns the OutputStream where this OutputConverter will write the converted object to.- Returns:
- The OutputStream to use as the output source for this OutputConverter.
-
setOutputStream
public void setOutputStream(OutputStream outputStream)
Sets the OutputStream to be used as the output source for this OutputConverter.- Parameters:
outputStream
- The OutputStream to use as the output source for this OutputConverter.
-
-