public class StreamToIntegerConverter extends Object implements StreamToValueConverterSPI<Integer>
Constructor and Description |
---|
StreamToIntegerConverter() |
Modifier and Type | Method and Description |
---|---|
Class<Integer> |
getPojoClass()
The class of objects which this builder can construct from a stream
|
Integer |
renderFrom(InputStream stream,
ReferencedDataNature dataNature,
String charset)
Render the stream to the target object type
|
public Class<Integer> getPojoClass()
StreamToValueConverterSPI
getPojoClass
in interface StreamToValueConverterSPI<Integer>
public Integer renderFrom(InputStream stream, ReferencedDataNature dataNature, String charset)
StreamToValueConverterSPI
renderFrom
in interface StreamToValueConverterSPI<Integer>
stream
- input stream of data to render to the object; the caller will
close itCopyright © 2015–2016 The Apache Software Foundation. All rights reserved.