static public LineOutputStream<BufferingProcessor> buffering() { return buffering(StandardCharsets.UTF_8); }
static public LineOutputStream<LastLineProcessor> lastLine() { return lastLine(StandardCharsets.UTF_8); }
@Override public void write(int b) throws IOException { write(new byte[] { (byte)b }, 0, 1); }
static public StreamableOutput lineOutput(LineOutputStream.Processor processor, Charset charset) { Objects.requireNonNull(processor, "processor cannot be null"); return new StreamableOutput(new LineOutputStream(processor, charset), "<lines>", null, null); }
@Override public void write(byte[] buffer, int offset, int length) throws IOException { verifyNotClosed();
static public StreamableOutput lineOutput(LineOutputStream.Processor processor, Charset charset) { Objects.requireNonNull(processor, "processor cannot be null"); return new StreamableOutput(new LineOutputStream(processor, charset), "<lines>", null, null); }
@Override public void write(byte[] buffer, int offset, int length) throws IOException { verifyNotClosed();
static public LineOutputStream<BufferingProcessor> buffering(Charset charset) { return new LineOutputStream<>(new BufferingProcessor(), charset); }
@Override public void write(byte[] b) throws IOException { write(b, 0, b.length); }
static public LineOutputStream<LastLineProcessor> lastLine() { return lastLine(StandardCharsets.UTF_8); }
static public LineOutputStream<BufferingProcessor> buffering() { return buffering(StandardCharsets.UTF_8); }
static public LineOutputStream<BufferingProcessor> buffering(Charset charset) { return new LineOutputStream<>(new BufferingProcessor(), charset); }
@Override public void write(byte[] b) throws IOException { write(b, 0, b.length); }
static public LineOutputStream<LastLineProcessor> lastLine(Charset charset) { return new LineOutputStream<>(new LastLineProcessor(), charset); }
@Override public void write(int b) throws IOException { write(new byte[] { (byte)b }, 0, 1); }
static public LineOutputStream<LastLineProcessor> lastLine(Charset charset) { return new LineOutputStream<>(new LastLineProcessor(), charset); }