congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SubstitutionTextReader
Code IndexAdd Tabnine to your IDE (free)

How to use
SubstitutionTextReader
in
org.eclipse.jface.internal.text.html

Best Java code snippets using org.eclipse.jface.internal.text.html.SubstitutionTextReader (Showing top 4 results out of 315)

origin: org.eclipse.platform/org.eclipse.jface.text

@Override
public int read() throws IOException {
  int c= super.read();
  if (c != -1)
    ++ fCounter;
  return c;
}
origin: org.eclipse.platform/org.eclipse.jface.text

/**
 * @see Reader#read()
 */
@Override
public int read() throws IOException {
  int c;
  do {
    c= nextChar();
    while (!fReadFromBuffer && c != -1) {
      String s= computeSubstitution(c);
      if (s == null)
        break;
      if (s.length() > 0)
        fBuffer.insert(0, s);
      c= nextChar();
    }
  } while (fSkipWhiteSpace && fWasWhiteSpace && (c == ' '));
  fWasWhiteSpace= (c == ' ' || c == '\r' || c == '\n');
  return c;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

/**
 * @see Reader#read()
 */
@Override
public int read() throws IOException {
  int c;
  do {
    c= nextChar();
    while (!fReadFromBuffer && c != -1) {
      String s= computeSubstitution(c);
      if (s == null)
        break;
      if (s.length() > 0)
        fBuffer.insert(0, s);
      c= nextChar();
    }
  } while (fSkipWhiteSpace && fWasWhiteSpace && (c == ' '));
  fWasWhiteSpace= (c == ' ' || c == '\r' || c == '\n');
  return c;
}
origin: org.eclipse.scout.sdk.deps/org.eclipse.jface.text

@Override
public int read() throws IOException {
  int c= super.read();
  if (c != -1)
    ++ fCounter;
  return c;
}
org.eclipse.jface.internal.text.htmlSubstitutionTextReader

Javadoc

Reads the text contents from a reader and computes for each character a potential substitution. The substitution may eat more characters than only the one passed into the computation routine.

Moved into this package from org.eclipse.jface.internal.text.revisions.

Most used methods

  • computeSubstitution
    Computes the substitution for the given character and if necessary subsequent characters. Implementa
  • nextChar
    Returns the next character.
  • read

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • getSupportFragmentManager (FragmentActivity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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