Class LazyString
java.lang.Object
io.helidon.common.buffers.LazyString
String that materializes only when requested.
-
Constructor Summary
ConstructorsConstructorDescriptionLazyString(byte[] buffer, int offset, int length, Charset charset) New instance.LazyString(byte[] buffer, Charset charset) New instance. -
Method Summary
-
Constructor Details
-
LazyString
New instance.- Parameters:
buffer- buffer to useoffset- offset within the bufferlength- lengthcharset- character set to construct the string
-
LazyString
New instance.- Parameters:
buffer- buffer to use (all bytes)charset- character set to construct the string
-
-
Method Details
-
stripOws
Strip optional whitespace(s) from beginning and end of the String. Defined by the HTTP specification, OWS is a sequence of zero to n space and/or horizontal tab characters.- Returns:
- string without optional leading and trailing whitespaces
-
toString
-