uk.co.autotrader.traverson.conversion.InputStreamConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of traverson4j-core Show documentation
Show all versions of traverson4j-core Show documentation
The kernel of traverson4j. This provides the main API for a client to traverse a Hypermedia REST service
The newest version!
package uk.co.autotrader.traverson.conversion;
import java.io.InputStream;
/**
* This class does not close the inputStream, relying on the developers to do so
*/
class InputStreamConverter implements ResourceConverter {
@Override
public Class getDestinationType() {
return InputStream.class;
}
@Override
public InputStream convert(InputStream resource, Class extends InputStream> returnType) {
return resource;
}
}