Tabnine Logo
CodeReaderFilter
Code IndexAdd Tabnine to your IDE (free)

How to use
CodeReaderFilter
in
org.sonar.channel

Best Java code snippets using org.sonar.channel.CodeReaderFilter (Showing top 3 results out of 315)

origin: org.codehaus.sonar/sonar-channel

@Override
public int read(char[] cbuf, int off, int len) throws IOException {
 int read = codeReaderFilter.read(cbuf, off, len);
 return read == 0 ? -1 : read;
}
origin: org.codehaus.sonar/sonar-channel

public Filter(Reader in, CodeReaderFilter<?> codeReaderFilter, CodeReaderConfiguration configuration) {
 super(in);
 this.codeReaderFilter = codeReaderFilter;
 this.codeReaderFilter.setConfiguration(configuration.cloneWithoutCodeReaderFilters());
 this.codeReaderFilter.setReader(in);
}
origin: org.codehaus.sonar/sonar-channel

/**
 * {@inheritDoc}
 */
@Override
public void setReader(Reader reader) {
 super.setReader(reader);
 internalCodeReader = new CodeReader(reader, getConfiguration());
}
org.sonar.channelCodeReaderFilter

Javadoc

This class can be extended to provide filtering capabilities for the CodeReader class.
The purpose is to filter the character flow before the CodeReader class passes it to the different channels. It is possible to give several filters to a CodeReader: they will be called one after another, following the declaration order in the CodeReader constructor, to sequentially filter the character flow.

Most used methods

  • read
    This method implements the filtering logic, that is: * get the characters from the reader, * f
  • setConfiguration
    Sets the configuration that must be used by the CodeReader
  • setReader
    Sets the reader from which this class will read the character stream.

Popular in Java

  • Making http post requests using okhttp
  • setContentView (Activity)
  • compareTo (BigDecimal)
  • getContentResolver (Context)
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Collectors (java.util.stream)
  • Reference (javax.naming)
  • BoxLayout (javax.swing)
  • JCheckBox (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top PhpStorm 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