All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.co.autotrader.traverson.conversion.InputStreamConverter Maven / Gradle / Ivy

Go to download

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 returnType) {
        return resource;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy