Top Fields Constructors Methods
org.apache.hc.client5.http.impl.async

pack-priv final Class LogAppendable

extends Object
implements Appendable
Class Inheritance
All Implemented Interfaces
java.lang.Appendable
Imports
java.io.IOException, org.slf4j.Logger

Field Summary

Modifier and TypeField and Description
private final StringBuilder
private final Logger
private final String

Constructor Summary

AccessConstructor and Description
public
LogAppendable(final Logger log, final String prefix)

Method Summary

Modifier and TypeMethod and Description
public Appendable
append(final CharSequence
The character sequence to append. If csq is null, then the four characters "null" are appended to this Appendable.
text
)

Implements java.lang.Appendable.append.

Appends the specified character sequence to this Appendable.
public Appendable
append(final CharSequence
The character sequence from which a subsequence will be appended. If csq is null, then characters will be appended as if csq contained the four characters "null".
text
,
final int
The index of the first character in the subsequence
start
,
final int
The index of the character following the last character in the subsequence
end
)

Implements java.lang.Appendable.append.

Appends a subsequence of the specified character sequence to this Appendable.
public Appendable
append(final char
The character to append
ch
)

Implements java.lang.Appendable.append.

Appends the specified character to this Appendable.
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bufferback to summary
private final StringBuilder buffer
logback to summary
private final Logger log
prefixback to summary
private final String prefix

Constructor Detail

LogAppendableback to summary
public LogAppendable(final Logger log, final String prefix)

Method Detail

appendback to summary
public Appendable append(final CharSequence text) throws IOException

Implements java.lang.Appendable.append.

Doc from java.lang.Appendable.append.

Appends the specified character sequence to this Appendable.

Depending on which class implements the character sequence csq, the entire sequence may not be appended. For instance, if csq is a java.nio.CharBuffer then the subsequence to append is defined by the buffer's position and limit.

Parameters
text:CharSequence

The character sequence to append. If csq is null, then the four characters "null" are appended to this Appendable.

Returns:Appendable

A reference to this Appendable

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
appendback to summary
public Appendable append(final CharSequence text, final int start, final int end) throws IOException

Implements java.lang.Appendable.append.

Doc from java.lang.Appendable.append.

Appends a subsequence of the specified character sequence to this Appendable.

An invocation of this method of the form out.append(csq, start, end) when csq is not null, behaves in exactly the same way as the invocation

    out.append(csq.subSequence(start, end)) 
Parameters
text:CharSequence

The character sequence from which a subsequence will be appended. If csq is null, then characters will be appended as if csq contained the four characters "null".

start:int

The index of the first character in the subsequence

end:int

The index of the character following the last character in the subsequence

Returns:Appendable

A reference to this Appendable

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
appendback to summary
public Appendable append(final char ch) throws IOException

Implements java.lang.Appendable.append.

Doc from java.lang.Appendable.append.

Appends the specified character to this Appendable.

Parameters
ch:char

The character to append

Returns:Appendable

A reference to this Appendable

Annotations
@Override
Exceptions
IOException:
If an I/O error occurs
flushback to summary
public void flush()