Tabnine Logo
ContentStreamBase$StringStream.getCharsetFromContentType
Code IndexAdd Tabnine to your IDE (free)

How to use
getCharsetFromContentType
method
in
org.apache.solr.common.util.ContentStreamBase$StringStream

Best Java code snippets using org.apache.solr.common.util.ContentStreamBase$StringStream.getCharsetFromContentType (Showing top 3 results out of 315)

origin: org.apache.solr/solr-common

 /**
  * If an charset is defined (by the contentType) use that, otherwise 
  * use a StringReader
  */
 @Override
 public Reader getReader() throws IOException {
  String charset = getCharsetFromContentType( contentType );
  return charset == null 
   ? new StringReader( str )
   : new InputStreamReader( getStream(), charset );
 }
}
origin: org.apache.solr/solr-solrj

 /**
  * If an charset is defined (by the contentType) use that, otherwise 
  * use a StringReader
  */
 @Override
 public Reader getReader() throws IOException {
  String charset = getCharsetFromContentType( contentType );
  return charset == null 
   ? new StringReader( str )
   : new InputStreamReader( getStream(), charset );
 }
}
origin: com.hynnet/solr-solrj

 /**
  * If an charset is defined (by the contentType) use that, otherwise 
  * use a StringReader
  */
 @Override
 public Reader getReader() throws IOException {
  String charset = getCharsetFromContentType( contentType );
  return charset == null 
   ? new StringReader( str )
   : new InputStreamReader( getStream(), charset );
 }
}
org.apache.solr.common.utilContentStreamBase$StringStreamgetCharsetFromContentType

Popular methods of ContentStreamBase$StringStream

  • <init>
  • getStream
  • detect

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now