src/main/java/js/http/encoder/StreamArgumentsReader.java
@Override
	public Object read(InputStream inputStream, Type type) throws IOException {
		Closeable closeable = StreamFactory.getInstance(inputStream, type);
		threadLocal.set(closeable);
		return closeable;
	}
@Override
	public Object read(InputStream inputStream, Type type) throws IOException {
		Closeable closeable = StreamFactory.getInstance(inputStream, type);
		threadLocal.set(closeable);
		return closeable;
	}
@ Override public Object read ( InputStream inputStream , Type type ) throws IOException { Closeable closeable = StreamFactory . getInstance ( inputStream , type ) ; threadLocal . set ( closeable ) ; return closeable ; }
This method is a this wrapper for {@link StreamFactory#getInstance(InputStream, Type)}.

@param inputStream input stream,
@param type expected type.
@return stream instance accordingly requested type.
@throws IOException if newly stream creation fails.
@throws IllegalArgumentException if there requested type is not supported.
This method is a this wrapper for { @link StreamFactory#getInstance ( InputStream Type ) } .