-
- All Superinterfaces:
Writable
- All Known Implementing Classes:
CharArrayBufferResult
,EmptyResult
,LoggingResult
,SegmentedResult
,StringResult
,TempFileResult
public interface BufferResult extends Writable
The result from completion of a buffered writer. Only available after a buffered writer has been closed.All implementations are thread safe.
Idea: Add contentEquals(String) method to avoid some uses of toString?
- Author:
- AO Industries, Inc.
- See Also:
BufferWriter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BufferResult
trim()
Trims the contents of this result, as per rules ofStrings.isWhitespace(int)
, returning the instance that represents this result trimmed.
-
-
-
Method Detail
-
trim
BufferResult trim() throws IOException
Trims the contents of this result, as per rules of
Strings.isWhitespace(int)
, returning the instance that represents this result trimmed.All implementations cache the result for constant-time secondary access.
- Specified by:
trim
in interfaceWritable
- Throws:
IOException
-
-