Class LineLevelAppenderStream
java.lang.Object
java.io.OutputStream
org.apache.sshd.common.util.io.output.LineOutputStream
org.apache.sshd.common.util.io.output.LineLevelAppenderStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Accumulates all written data into a work buffer and calls the actual writing method only when LF detected. Note: it strips CR if found before the LF
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LineLevelAppender
protected final CharsetDecoder
protected char[]
Fields inherited from class org.apache.sshd.common.util.io.output.LineOutputStream
oneByte, usedLen
-
Constructor Summary
ConstructorsConstructorDescriptionLineLevelAppenderStream
(String charset, LineLevelAppender appender) LineLevelAppenderStream
(CharsetDecoder decoder, LineLevelAppender appender) LineLevelAppenderStream
(Charset charset, LineLevelAppender appender) LineLevelAppenderStream
(LineLevelAppender appender) -
Method Summary
Modifier and TypeMethodDescriptionprotected char[]
ensureCharDataCapacity
(int numBytes) final LineLevelAppender
protected void
handleLine
(byte[] b, int off, int len) Methods inherited from class org.apache.sshd.common.util.io.output.LineOutputStream
accumulateLineData, close, write, write, write
Methods inherited from class java.io.OutputStream
flush
-
Field Details
-
csDecoder
-
appenderInstance
-
lineBuf
protected char[] lineBuf
-
-
Constructor Details
-
LineLevelAppenderStream
-
LineLevelAppenderStream
-
LineLevelAppenderStream
-
LineLevelAppenderStream
-
-
Method Details
-
getLineLevelAppender
-
handleLine
- Specified by:
handleLine
in classLineOutputStream
- Throws:
IOException
-
ensureCharDataCapacity
protected char[] ensureCharDataCapacity(int numBytes)
-