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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTo(Encoder encoder, Appendable out) voidappendTo(Encoder encoder, Appendable out, long start, long end) voidappendTo(Appendable out) voidappendTo(Appendable out, long start, long end) longgetId()longbooleantoString()trim()Trims the contents of this result, as per rules ofStrings.isWhitespace(int), returning the instance that represents this result trimmed.voidvoidvoidvoid
-
Constructor Details
-
LoggingResult
-
-
Method Details
-
getId
public long getId() -
getLength
- Specified by:
getLengthin interfaceWritable- Throws:
IOException
-
isFastToString
public boolean isFastToString()- Specified by:
isFastToStringin interfaceWritable
-
toString
-
writeTo
- Specified by:
writeToin interfaceWritable- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWritable- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWritable- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWritable- Throws:
IOException
-
appendTo
- Specified by:
appendToin interfaceWritable- Throws:
IOException
-
appendTo
- Specified by:
appendToin interfaceWritable- Throws:
IOException
-
appendTo
- Specified by:
appendToin interfaceWritable- Throws:
IOException
-
appendTo
- Specified by:
appendToin interfaceWritable- Throws:
IOException
-
trim
Description copied from interface:BufferResultTrims 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:
trimin interfaceBufferResult- Specified by:
trimin interfaceWritable- Throws:
IOException
-
