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

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

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

origin: Geomatys/geotoolkit

  /**
   * Changes the line separator. This is the string to insert in place of every occurrences of
   * {@code "\r"}, {@code "\n"} or {@code "\r\n"}.
   *
   * @param  lineSeparator The new line separator.
   */
  public void setLineSeparator(final String lineSeparator) {
    synchronized (lock) {
      formatter.setLineSeparator(lineSeparator);
    }
  }
}
origin: Geomatys/geotoolkit

/**
 * Constructs a {@code LineWriter} object that will use the specified line separator.
 *
 * @param  out A writer object to provide the underlying stream.
 * @param  lineSeparator String to use as line separator.
 */
public LineWriter(final Writer out, final String lineSeparator) {
  this(new LineAppender(out));
  formatter.setLineSeparator(lineSeparator);
}
origin: org.apache.sis.core/sis-utility

if (bodyLineSeparator.length() != lineSeparator.length() + margin + 1) {
  bodyLineSeparator = lineSeparator + levelColor + CharSequences.spaces(margin) + levelReset + ' ';
  writer.setLineSeparator(bodyLineSeparator);
origin: apache/sis

  bodyLineSeparator = lineSeparator;
writer.setLineSeparator(bodyLineSeparator);
org.apache.sis.ioLineAppendersetLineSeparator

Javadoc

Changes the line separator to be sent to the underlying appendable. This is the string to insert in place of every occurrences of "\r", "\n", "\r\n" or other Characters#isLineOrParagraphSeparator(int). If null (the default), then the line separators given to the appendmethods are forwarded unchanged.

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
  • getTabulationWidth
    Returns the current tabulation width, in unit of Unicode characters (code point count). The default
  • 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

  • Running tasks concurrently on multiple threads
  • setContentView (Activity)
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JLabel (javax.swing)
  • Github Copilot alternatives
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