Package io.deephaven.io.log.impl
Class LogOutputStringImpl
java.lang.Object
io.deephaven.io.log.impl.LogOutputStringImpl
- All Implemented Interfaces:
LogOutput
,CharSequence
A LogOutput implementation, designed solely as an adapter for LogOutputAppendable's to produce Strings.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.base.log.LogOutput
LogOutput.LongFormatter, LogOutput.Null, LogOutput.ObjFormatter<T>, LogOutput.ObjIntIntFormatter<T>, LogOutput.ObjObjFormatter<T,
U> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final StringBuilder
The StringBuilder used to hold output.protected static final String
The line separator.Fields inherited from interface io.deephaven.base.log.LogOutput
APPENDABLE_ARRAY_FORMATTER, APPENDABLE_COLLECTION_FORMATTER, BASIC_FORMATTER, BOOLEAN_ARRAY_FORMATTER, INT_ARRAY_FORMATTER, LOCAL_DATE_TIME_FORMATTER, MILLIS_FROM_EPOCH_FORMATTER, millisFormatter, NULL, NULL_TERMINATED_STRING_FORMATTER, SOCKADDR_FORMATTER, STRING_ARRAY_FORMATTER, STRING_COLLECTION_FORMATTER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend
(boolean b) append
(byte[] ba) append
(byte[] ba, byte terminator) append
(byte[] ba, int pos, int length) append
(char c) append
(int i) append
(long l) append
(short s) append
(LogOutput.LongFormatter formatter, long n) <T> LogOutput
append
(LogOutput.ObjFormatter<T> objFormatter, T t) <T> LogOutput
append
(LogOutput.ObjIntIntFormatter<T> objFormatter, T t, int nOffset, int nLength) <T,
U> LogOutput append
(LogOutput.ObjObjFormatter<T, U> objObjFormatter, T t, U u) append
(LogOutputAppendable appendable) append
(CharSequence seq) append
(CharSequence seq, int start, int length) append
(ByteBuffer bb) Appends the character equivalent of each byte remaining in the given ByteBuffer ([65 66 67] == "ABC" not "656667"), but does not modify the mark, position, or limit of the ByteBuffer.appendDouble
(double d) appendTimestamp
(long utcMillis, TimestampBuffer tb) appendTimestampMicros
(long utcMicros, TimestampBufferMicros tb) char
charAt
(int index) clear()
close()
getBuffer
(int i) int
int
int
length()
nf()
nl()
int
int
size()
start()
subSequence
(int start, int end) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Field Details
-
LINE_SEPARATOR
The line separator. -
builder
The StringBuilder used to hold output.
-
-
Constructor Details
-
LogOutputStringImpl
public LogOutputStringImpl() -
LogOutputStringImpl
-
-
Method Details
-
length
public int length()- Specified by:
length
in interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAt
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
markEndOfHeader
- Specified by:
markEndOfHeader
in interfaceLogOutput
-
getEndOfHeaderOffset
public int getEndOfHeaderOffset()- Specified by:
getEndOfHeaderOffset
in interfaceLogOutput
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
start
-
append
-
append
-
append
-
append
-
append
-
appendDouble
- Specified by:
appendDouble
in interfaceLogOutput
-
append
-
append
-
append
-
append
public <T> LogOutput append(LogOutput.ObjIntIntFormatter<T> objFormatter, T t, int nOffset, int nLength) -
append
-
append
-
append
-
append
Description copied from interface:LogOutput
Appends the character equivalent of each byte remaining in the given ByteBuffer ([65 66 67] == "ABC" not "656667"), but does not modify the mark, position, or limit of the ByteBuffer. -
appendTimestamp
- Specified by:
appendTimestamp
in interfaceLogOutput
-
appendTimestampMicros
- Specified by:
appendTimestampMicros
in interfaceLogOutput
-
append
-
append
-
append
-
append
-
nf
-
nl
-
close
-
relativeSize
public int relativeSize()- Specified by:
relativeSize
in interfaceLogOutput
-
size
public int size() -
getBufferCount
public int getBufferCount()- Specified by:
getBufferCount
in interfaceLogOutput
-
getBuffer
-
clear
-