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

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

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

origin: Geomatys/geotoolkit

/**
 * Returns the current line separator.
 *
 * @return The current line separator.
 */
public String getLineSeparator() {
  return formatter.getLineSeparator();
}
origin: org.apache.sis.core/sis-utility

String bodyLineSeparator = writer.getLineSeparator();
final String lineSeparator = System.lineSeparator();
if (bodyLineSeparator.length() != lineSeparator.length() + margin + 1) {
origin: apache/sis

String bodyLineSeparator = writer.getLineSeparator();
final String lineSeparator = System.lineSeparator();
if (bodyLineSeparator.length() != lineSeparator.length() + margin + 1) {
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("getLineSeparator", " ", ((LineAppender) f).getLineSeparator());
  }
  assertSame(f, f.append("Le vrai" + lineSeparator + "policitien, "));
  assertSame(f, f.append("c'est celui\r\nqui\r")); // Line separator broken on two method calls.
  assertSame(f, f.append("\narrive à garder " + lineSeparator));
  assertSame(f, f.append("son\ridéal   " + lineSeparator + 't'));
  assertSame(f, f.append("out en perdant"));
  assertSame(f, f.append(lineSeparator + "ses illusions."));
  assertOutputEquals("Le vrai policitien, c'est celui qui arrive à garder son idéal tout en perdant ses illusions.");
}
org.apache.sis.ioLineAppendergetLineSeparator

Javadoc

Returns the line separator to be sent to the underlying appendable, or null if EOL sequences 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.
  • 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
  • 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

  • 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)
  • 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