java.lang.Object
com.aoapps.io.buffer.SegmentedResult
- All Implemented Interfaces:
BufferResult
,Writable
- Author:
- AO Industries, Inc.
-
Constructor Summary
ModifierConstructorDescriptionprotected
SegmentedResult
(byte[] segmentTypes, Object[] segmentValues, int[] segmentOffsets, int[] segmentLengths, long start, int startSegmentIndex, int startSegmentOffset, int startSegmentLength, long end, int endSegmentIndex, int endSegmentOffset, int endSegmentLength) -
Method Summary
Modifier and TypeMethodDescriptionlong
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
-
SegmentedResult
protected SegmentedResult(byte[] segmentTypes, Object[] segmentValues, int[] segmentOffsets, int[] segmentLengths, long start, int startSegmentIndex, int startSegmentOffset, int startSegmentLength, long end, int endSegmentIndex, int endSegmentOffset, int endSegmentLength)
-
-
Method Details
-
getLength
public long getLength() -
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
-
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
-