public class Buffer.View extends Object implements Supplier<Buffer>
get()
is called, the Buffer is set to
the correct start and end points as given at creation time. After the view has been used, it is the responsibility
of the caller to Buffer.reset()
the buffer if more manipulation is required. Otherwise, multiple views can be
created from a single buffer and used consecutively to extract portions of a buffer without expensive substrings.Modifier and Type | Method and Description |
---|---|
Buffer |
get()
Get an object.
|
int |
getEnd()
Get the end of this range.
|
int |
getStart()
Get the start of this range.
|
Copyright © 2017. All rights reserved.