feign.codec
Class StringIncrementalDecoder

java.lang.Object
  extended by feign.codec.StringIncrementalDecoder
All Implemented Interfaces:
IncrementalDecoder<java.io.Reader,java.lang.String>, IncrementalDecoder.TextStream<java.lang.String>

public class StringIncrementalDecoder
extends java.lang.Object
implements IncrementalDecoder.TextStream<java.lang.String>


Nested Class Summary
 
Nested classes/interfaces inherited from interface feign.codec.IncrementalDecoder
IncrementalDecoder.TextStream<T>
 
Constructor Summary
StringIncrementalDecoder()
           
 
Method Summary
 void decode(java.io.Reader reader, java.lang.reflect.Type type, IncrementalCallback<? super java.lang.String> incrementalCallback)
          Implement this to decode a resource to an object into a single object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringIncrementalDecoder

public StringIncrementalDecoder()
Method Detail

decode

public void decode(java.io.Reader reader,
                   java.lang.reflect.Type type,
                   IncrementalCallback<? super java.lang.String> incrementalCallback)
            throws java.io.IOException
Description copied from interface: IncrementalDecoder
Implement this to decode a resource to an object into a single object. If you need to wrap exceptions, please do so via DecodeException.
Do not call onSuccess or onFailure.

Specified by:
decode in interface IncrementalDecoder<java.io.Reader,java.lang.String>
Parameters:
reader - if Closeable, no need to close this, as the caller manages resources.
type - type parameter of IncrementalCallback.onNext(T).
incrementalCallback - call onNext each time an object of type is decoded from the response.
Throws:
java.io.IOException - will be propagated safely to the caller.