Top Description Fields Constructors Methods
org.apache.sshd.common.util.io.output

public Class LineLevelAppenderStream

extends LineOutputStream
Class Inheritance
Imports
java.io.IOException, .StreamCorruptedException, java.nio.ByteBuffer, .CharBuffer, java.nio.charset.Charset, .CharsetDecoder, .CoderResult, java.util.Objects, org.apache.sshd.common.util.ValidateUtils

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

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
protected final LineLevelAppender
protected final CharsetDecoder
protected char[]
Inherited from org.apache.sshd.common.util.io.output.LineOutputStream:
oneByteusedLen

Constructor Summary

AccessConstructor and Description
public
public
public
public

Method Summary

Modifier and TypeMethod and Description
protected char[]
ensureCharDataCapacity(int numBytes)

public final LineLevelAppender
protected void
handleLine(byte[] b, int off, int len)

Implements abstract org.apache.sshd.common.util.io.output.LineOutputStream.handleLine.

Inherited from org.apache.sshd.common.util.io.output.LineOutputStream:
accumulateLineDataclosewritewritewrite

Field Detail

appenderInstanceback to summary
protected final LineLevelAppender appenderInstance
csDecoderback to summary
protected final CharsetDecoder csDecoder
lineBufback to summary
protected char[] lineBuf

Hides org.apache.sshd.common.util.io.output.LineOutputStream.lineBuf.

Constructor Detail

LineLevelAppenderStreamback to summary
public LineLevelAppenderStream(LineLevelAppender appender)
LineLevelAppenderStreamback to summary
public LineLevelAppenderStream(String charset, LineLevelAppender appender)
LineLevelAppenderStreamback to summary
public LineLevelAppenderStream(Charset charset, LineLevelAppender appender)
LineLevelAppenderStreamback to summary
public LineLevelAppenderStream(CharsetDecoder decoder, LineLevelAppender appender)

Method Detail

ensureCharDataCapacityback to summary
protected char[] ensureCharDataCapacity(int numBytes)
getLineLevelAppenderback to summary
public final LineLevelAppender getLineLevelAppender()
handleLineback to summary
protected void handleLine(byte[] b, int off, int len) throws IOException

Implements abstract org.apache.sshd.common.util.io.output.LineOutputStream.handleLine.

Annotations
@Override