/** * Workaround for RFE #4093999 ("Relax constraint on placement of this()/super() * call in constructors") */ private IndentedLineWriter(final Formatter formatter) { super(IO.asWriter(formatter)); formatter.enclosing = this; }
/** * Workaround for RFE #4093999 ("Relax constraint on placement of this()/super() * call in constructors") */ private LineWriter(final LineAppender formatter) { super(IO.asWriter(formatter)); this.formatter = formatter; }
/** * Workaround for RFE #4093999 ("Relax constraint on placement of this()/super() * call in constructors") */ private ExpandedTabWriter(final LineAppender formatter) { super(IO.asWriter(formatter)); this.formatter = formatter; formatter.setTabulationExpanded(true); }
/** * Tests a few {@link java.io.Writer#write(String)} calls, * with Unix line terminators in the sequences. * * @throws IOException should never happen since the tests will write in a buffer. */ public void testSequencesToWriter() throws IOException { appender = IO.asWriter(appender); run("\n"); } }
writer = new LineAppender(str, System.lineSeparator(), true); buffer = str.getBuffer().append(header); printer = new PrintWriter(IO.asWriter(writer)); writer.setTabulationWidth(4);
writer = new LineAppender(str, System.lineSeparator(), true); buffer = str.getBuffer().append(header); printer = new PrintWriter(IO.asWriter(writer)); writer.setTabulationWidth(4);