java.lang.Object
com.aoapps.io.buffer.LoggingResult
- All Implemented Interfaces:
BufferResult
,Writable
Logs all write calls in a way that can be put into Java source code.
This is used to capture real-world scenarios for unit testing.
- Author:
- AO Industries, Inc.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
appendTo
(Encoder encoder, Appendable out) void
appendTo
(Encoder encoder, Appendable out, long start, long end) void
appendTo
(Appendable out) void
appendTo
(Appendable out, long start, long end) long
getId()
long
boolean
toString()
trim()
Trims the contents of this result, as per rules ofStrings.isWhitespace(int)
, returning the instance that represents this result trimmed.void
void
void
void
-
Constructor Details
-
LoggingResult
-
-
Method Details
-
getId
public long getId() -
getLength
- Specified by:
getLength
in interfaceWritable
- Throws:
IOException
-
isFastToString
public boolean isFastToString()- Specified by:
isFastToString
in interfaceWritable
-
toString
-
writeTo
- Specified by:
writeTo
in interfaceWritable
- Throws:
IOException
-
writeTo
- Specified by:
writeTo
in interfaceWritable
- Throws:
IOException
-
writeTo
- Specified by:
writeTo
in interfaceWritable
- Throws:
IOException
-
writeTo
- Specified by:
writeTo
in interfaceWritable
- Throws:
IOException
-
appendTo
- Specified by:
appendTo
in interfaceWritable
- Throws:
IOException
-
appendTo
- Specified by:
appendTo
in interfaceWritable
- Throws:
IOException
-
appendTo
- Specified by:
appendTo
in interfaceWritable
- Throws:
IOException
-
appendTo
- Specified by:
appendTo
in interfaceWritable
- Throws:
IOException
-
trim
Description copied from interface:BufferResult
Trims the contents of this result, as per rules ofStrings.isWhitespace(int)
, returning the instance that represents this result trimmed.All implementations cache the result for constant-time secondary access.
- Specified by:
trim
in interfaceBufferResult
- Specified by:
trim
in interfaceWritable
- Throws:
IOException
-