Package com.google.inject.servlet
Class ServletUtils.ByteAccumulator
java.lang.Object
com.google.inject.servlet.ServletUtils.ByteAccumulator
- Enclosing class:
ServletUtils
Accumulates byte sequences while decoding strings, and encodes them into a StringBuilder.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
append
(byte b) (package private) void
dumpTo
(StringBuilder dest) private void
ensureCapacity
(int minCapacity) (package private) boolean
isEmpty()
-
Field Details
-
bytes
private byte[] bytes -
length
private int length -
encoding
-
-
Constructor Details
-
ByteAccumulator
ByteAccumulator(int capacity, Charset encoding)
-
-
Method Details
-
append
void append(byte b) -
dumpTo
-
isEmpty
boolean isEmpty() -
ensureCapacity
private void ensureCapacity(int minCapacity)
-