class StreamResource extends AbstractStreamResource {

    public StreamResource setContentTypeResolver(ContentTypeResolver resolver) {
        if (resolver == null) {
            throw new IllegalArgumentException("Resolver cannot be null");
        }
        this.resolver = resolver;
        return this;
    }

    public  StreamResource(String name, StreamResourceWriter writer);
    public  StreamResource(String name, InputStreamFactory factory);

}