public class CDataWriter extends FilterWriter
| Modifier and Type | Field and Description |
|---|---|
static IntUnaryOperator |
INVALID_CHARACTER_MAPPING |
out| Constructor and Description |
|---|
CDataWriter(Writer out) |
CDataWriter(Writer out,
IntUnaryOperator operator)
Create a new filtered writer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str,
int off,
int len) |
close, flushpublic static final IntUnaryOperator INVALID_CHARACTER_MAPPING
public CDataWriter(Writer out, IntUnaryOperator operator)
out - a Writer object to provide the underlying stream.operator - Operator to transform invalid characters.NullPointerException - if out is nullpublic CDataWriter(Writer out)
public void write(int c)
throws IOException
write in class FilterWriterIOExceptionpublic void write(char[] cbuf,
int off,
int len)
throws IOException
write in class FilterWriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write in class FilterWriterIOExceptionCopyright © 2018. All rights reserved.