Tabnine Logo
LineAppender.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.sis.io.LineAppender
constructor

Best Java code snippets using org.apache.sis.io.LineAppender.<init> (Showing top 12 results out of 315)

origin: Geomatys/geotoolkit

/**
 * Constructs a filter which replaces tab characters ({@code '\t'})
 * by spaces. Tab widths default to 8 characters.
 *
 * @param out A writer object to provide the underlying stream.
 */
public ExpandedTabWriter(final Writer out) {
  this(new LineAppender(out));
}
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: apache/sis

/**
 * Creates and configure the {@link LineAppender} to test.
 */
@Before
@Override
public void createLineAppender() {
  appender = new LineAppender(new LineAppender(appender, "\r", false), 10, false);
}
origin: Geomatys/geotoolkit

/**
 * Returns the exception trace as a string. This method get the stack trace using the
 * {@link Throwable#printStackTrace(PrintWriter)} method, then replaces the tabulation
 * characters by 4 white spaces.
 *
 * @param exception The exception to format.
 * @return A string representation of the given exception.
 */
public static String formatStackTrace(final Throwable exception) {
  final StringWriter writer = new StringWriter();
  exception.printStackTrace(new PrintWriter(writer));
  final StringBuilder buffer = new StringBuilder();
  final LineAppender formatter = new LineAppender(buffer);
  formatter.setTabulationWidth(TAB_WIDTH);
  try {
    formatter.append(writer.toString());
  } catch (IOException e) {
    throw new AssertionError(e);
  }
  return buffer.toString();
}
origin: apache/sis

/**
 * Creates and configure the {@link LineAppender} to test.
 */
@Before
@Override
public void createLineAppender() {
  appender = new LineAppender(appender, null, true);
}
origin: apache/sis

/**
 * Creates and configure the {@link LineAppender} to test.
 */
@Before
@Override
public void createLineAppender() {
  appender = new LineAppender(appender, 10, false);
}
origin: apache/sis

/**
 * Creates and configure the {@link LineAppender} to test.
 */
@Before
public void createLineAppender() {
  appender = new LineAppender(appender, " ", false);
}
origin: org.apache.sis.core/sis-utility

    ? new LineAppender(out, Integer.MAX_VALUE, true) : out;
switch (cell.alignment) {
  default: {
origin: apache/sis

    ? new LineAppender(out, Integer.MAX_VALUE, true) : out;
switch (cell.alignment) {
  default: {
origin: apache/sis

writer  = new LineAppender(str, System.lineSeparator(), true);
buffer  = str.getBuffer().append(header);
printer = new PrintWriter(IO.asWriter(writer));
origin: org.apache.sis.core/sis-utility

writer  = new LineAppender(str, System.lineSeparator(), true);
buffer  = str.getBuffer().append(header);
printer = new PrintWriter(IO.asWriter(writer));
origin: apache/sis

outHeader = new TableAppender(new LineAppender(out), " ");
outHeader.setMultiLinesCells(true);
printHeader(Vocabulary.Keys.Source);      printNameAndIdentifier(operation.getSourceCRS(), false);
org.apache.sis.ioLineAppender<init>

Javadoc

Constructs a default formatter. Callers should invoke at least one of the following methods after construction in order to perform useful work:
  • #setMaximalLineLength(int)
  • #setTabulationExpanded(boolean)
  • #setLineSeparator(String)

Popular methods of LineAppender

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

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Collectors (java.util.stream)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best plugins for Eclipse
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