Tabnine Logo
LineAppender.getTabulationWidth
Code IndexAdd Tabnine to your IDE (free)

How to use
getTabulationWidth
method
in
org.apache.sis.io.LineAppender

Best Java code snippets using org.apache.sis.io.LineAppender.getTabulationWidth (Showing top 2 results out of 315)

origin: Geomatys/geotoolkit

  /**
   * Returns the tab width.
   *
   * @return The tabulation width.
   */
  public int getTabWidth() {
    synchronized (lock) {
      return formatter.getTabulationWidth();
    }
  }
}
origin: apache/sis

  /**
   * Runs the test.
   *
   * @param  lineSeparator  the line separator to use in the test strings.
   * @throws IOException should never happen, since we are writing in a {@link StringBuilder}.
   */
  @Override
  void run(final String lineSeparator) throws IOException {
    final Appendable f = appender;
    if (f instanceof LineAppender) {
      assertEquals("getTabWidth", 8, ((LineAppender) f).getTabulationWidth());
    }
    assertSame(f, f.append("12\t8"   + lineSeparator));
    assertSame(f, f.append("1234\t8" + lineSeparator));
    assertSame(f, f.append("A tabulation\tin the middle."));
    assertOutputEquals("12      8" + lineSeparator
             + "1234    8" + lineSeparator
             + "A tabulation    in the middle.");
  }
}
org.apache.sis.ioLineAppendergetTabulationWidth

Javadoc

Returns the current tabulation width, in unit of Unicode characters (code point count). The default value is 8.

Popular methods of LineAppender

  • <init>
    Constructs a formatter which will replaces line separators by the given string.
  • append
    Writes a portion of a character sequence.
  • getLineSeparator
    Returns the line separator to be sent to the underlying appendable, or null if EOL sequences are for
  • setTabulationWidth
    Sets the tabulation width, in unit of Unicode characters (code point count).
  • flush
    Sends all pending characters to the underlying appendable, including trailing whitespaces. Note that
  • setLineSeparator
    Changes the line separator to be sent to the underlying appendable. This is the string to insert in
  • appendCodePoint
  • appendSurrogate
  • deleteSoftHyphen
    Removes the soft hyphen characters from the given buffer. This is invoked when the buffer is about t
  • endOfLine
    Writes pending non-white characters, discards trailing whitespaces, and resets column position to ze
  • getMaximalLineLength
    Returns the maximal line length, in unit of Unicode characters (code point count). The default value
  • isTabulationExpanded
    Returns true if this formatter expands tabulations into spaces. The default value is false, which me
  • getMaximalLineLength,
  • isTabulationExpanded,
  • lineSeparator,
  • onLineBegin,
  • setTabulationExpanded,
  • toCodePoint,
  • transfer,
  • write,
  • writeLineSeparator

Popular in Java

  • Reactive rest calls using spring rest template
  • getResourceAsStream (ClassLoader)
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • 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
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 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