@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 Appendable
append
in class Writer
IOException
public Writer append(CharSequence csq) throws IOException
append
in interface Appendable
append
in class Writer
IOException
public Writer append(CharSequence _csq, int _start, int _end) throws IOException
append
in interface Appendable
append
in class Writer
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
public void write(char[] _cbuf) throws IOException
write
in class Writer
IOException
public void write(char[] _cbuf, int _off, int _len) throws IOException
write
in class Writer
IOException
public void write(int c) throws IOException
write
in class Writer
IOException
public void write(String _str, int _off, int _len) throws IOException
write
in class Writer
IOException
public void write(String str) throws IOException
write
in class Writer
IOException