| Modifier and Type | Field and Description |
|---|---|
| protected ByteChunk | |
| protected final String | |
| protected final CharsetEncoder | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | C2BConverter(ByteChunk output, String encoding)
Create a converter, with bytes going to a byte buffer |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public ByteChunk | |
| public String | |
| public static C2BConverter | |
| public void | |
| public void |
| bb | back to summary |
|---|---|
| protected ByteChunk bb | |
| enc | back to summary |
|---|---|
| protected final String enc | |
| encoder | back to summary |
|---|---|
| protected final CharsetEncoder encoder | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| C2BConverter | back to summary |
|---|---|
| public C2BConverter(ByteChunk output, String encoding) throws IOException Create a converter, with bytes going to a byte buffer | |
| C2BConverter | back to summary |
|---|---|
| public C2BConverter(String encoding) throws IOException Create a converter | |
| convert | back to summary |
|---|---|
| public void convert(char[] c, int off, int len) throws IOException Generate the bytes using the specified encoding | |
| convert | back to summary |
|---|---|
| public void convert(String s) throws IOException Generate the bytes using the specified encoding | |
| convert | back to summary |
|---|---|
| public void convert(String s, int off, int len) throws IOException Generate the bytes using the specified encoding | |
| convert | back to summary |
|---|---|
| public void convert(char c) throws IOException Generate the bytes using the specified encoding | |
| convert | back to summary |
|---|---|
| public void convert(MessageBytes mb) throws IOException Convert a message bytes chars to bytes | |
| flushBuffer | back to summary |
|---|---|
| public void flushBuffer() throws IOException Flush any internal buffers into the ByteOutput or the internal byte[] | |
| getByteChunk | back to summary |
|---|---|
| public ByteChunk getByteChunk() | |
| getEncoding | back to summary |
|---|---|
| public String getEncoding() | |
| getInstance | back to summary |
|---|---|
| public static C2BConverter getInstance(ByteChunk output, String encoding) throws IOException | |
| recycle | back to summary |
|---|---|
| public void recycle() Reset the internal state, empty the buffers. The encoding remain in effect, the internal buffers remain allocated. | |
| setByteChunk | back to summary |
|---|---|
| public void setByteChunk(ByteChunk bb) | |