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) |
flushprotected final byte[] oneByte
protected byte[] lineBuf
protected int usedLen
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionprotected void accumulateLineData(byte[] b,
int off,
int len)
throws IOException
IOExceptionprotected abstract void handleLine(byte[] buf,
int offset,
int len)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2018–2024 The Apache Software Foundation. All rights reserved.