public class BoundedCharsAsEncodedBytesCounter
extends java.lang.Object
| Constructor and Description |
|---|
BoundedCharsAsEncodedBytesCounter() |
BoundedCharsAsEncodedBytesCounter(int capacity,
java.lang.String encoding) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCapacity() |
java.io.Writer |
getCountingWriter() |
java.lang.String |
getEncoding() |
boolean |
isWriterReferenced() |
void |
setCapacity(int capacity) |
void |
setEncoding(java.lang.String encoding) |
int |
size() |
void |
update(char[] buf) |
void |
update(char[] buf,
int off,
int len) |
void |
update(java.lang.String str) |
public BoundedCharsAsEncodedBytesCounter()
public BoundedCharsAsEncodedBytesCounter(int capacity,
java.lang.String encoding)
public void update(java.lang.String str)
public void update(char[] buf)
public void update(char[] buf,
int off,
int len)
public int size()
public boolean isWriterReferenced()
public java.io.Writer getCountingWriter()
public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
public int getCapacity()
public void setCapacity(int capacity)