Codota Logo
LineAppender.<init>
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
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

  • Reading from database using SQL prepared statement
  • getSharedPreferences (Context)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Kernel (java.awt.image)
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now