Example usage for org.apache.solr.common.util ContentStreamBase.StringStream setContentType

List of usage examples for org.apache.solr.common.util ContentStreamBase.StringStream setContentType

Introduction

In this page you can find the example usage for org.apache.solr.common.util ContentStreamBase.StringStream setContentType.

Prototype

public void setContentType(String contentType) 

Source Link

Usage

From source file:org.opensextant.extraction.SolrTaggerRequest.java

License:Apache License

@Override
public Collection<ContentStream> getContentStreams() {
    ContentStreamBase.StringStream stringStream = new ContentStreamBase.StringStream(input);
    stringStream.setContentType("text/plain; charset=UTF-8");
    return Collections.singleton((ContentStream) stringStream);
}

From source file:org.opensextant.matching.SolrTaggerRequest.java

License:Apache License

@Override
public Collection<ContentStream> getContentStreams() {
    ContentStreamBase.StringStream stream = new ContentStreamBase.StringStream(input);
    stream.setContentType("application/octet-stream");
    return Collections.singleton((ContentStream) stream);
}