@ThreadSafe public final class JSONStringWriter extends Writer
| Constructor and Description |
|---|
JSONStringWriter(Writer _out)
Constructs a JSONStringWriter.
|
| Modifier and Type | Method and Description |
|---|---|
Writer |
append(char c) |
Writer |
append(CharSequence csq) |
Writer |
append(CharSequence _csq,
int _start,
int _end)
Throws UnsupportedOperationException
because it is not yet needed.
|
void |
close()
Does nothing but close the underlying writer.
|
void |
flush()
Does nothing but flush the underlying writer.
|
void |
write(char[] _cbuf)
Throws UnsupportedOperationException
because it is not yet needed.
|
void |
write(char[] _cbuf,
int _off,
int _len)
Throws UnsupportedOperationException
because it is not yet needed.
|
void |
write(int c) |
void |
write(String str) |
void |
write(String _str,
int _off,
int _len)
Throws UnsupportedOperationException
because it is not yet needed.
|
public JSONStringWriter(Writer _out)
_out - the underlying writer.public Writer append(char c) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic Writer append(CharSequence csq) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic Writer append(CharSequence _csq, int _start, int _end) throws IOException
append in interface Appendableappend in class WriterIOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionpublic void flush() throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void write(char[] _cbuf) throws IOException
write in class WriterIOExceptionpublic void write(char[] _cbuf, int _off, int _len) throws IOException
write in class WriterIOExceptionpublic void write(int c) throws IOException
write in class WriterIOExceptionpublic void write(String _str, int _off, int _len) throws IOException
write in class WriterIOExceptionpublic void write(String str) throws IOException
write in class WriterIOException