List of usage examples for org.apache.solr.common.util ContentStreamBase.StringStream setContentType
public void setContentType(String contentType)
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); }