public abstract class LineOutputStream
extends java.io.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) |
protected final byte[] oneByte
protected byte[] lineBuf
protected int usedLen
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
protected void accumulateLineData(byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
protected abstract void handleLine(byte[] buf, int offset, int len) throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException