public abstract class LineOutputStream extends OutputStream
Modifier and Type | Field and Description |
---|---|
protected byte[] |
lineBuf |
protected byte[] |
oneByte |
protected int |
usedLen |
Modifier | Constructor and Description |
---|---|
protected |
LineOutputStream() |
Modifier and Type | Method and Description |
---|---|
protected void |
accumulateLineData(byte[] b,
int off,
int len) |
void |
close() |
protected abstract void |
handleLine(byte[] buf,
int offset,
int len) |
void |
write(byte[] b) |
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flush
protected final byte[] oneByte
protected byte[] lineBuf
protected int usedLen
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
protected void accumulateLineData(byte[] b, int off, int len) throws IOException
IOException
protected abstract void handleLine(byte[] buf, int offset, int len) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.