java.lang.Objectjava.io.Writer
java.io.StringWriter
All Implemented Interfaces:
Flushable, Closeable, Appendable
Closing a StringWriter has no effect. The methods in this class can be called after the stream has been closed without generating an IOException.
Mark
- ReinholdJDK1.1
- Fields inherited from java.io.Writer: |
---|
lock |
Constructor: |
---|
|
|
Method from java.io.StringWriter Summary: |
---|
append, append, append, close, flush, getBuffer, toString, write, write, write, write |
Methods from java.io.Writer: |
---|
append, append, append, close, flush, write, write, write, write, write |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from java.io.StringWriter Detail: |
---|
An invocation of this method of the form out.append(csq) behaves in exactly the same way as the invocation out.write(csq.toString()) Depending on the specification of toString for the character sequence csq, the entire sequence may not be appended. For instance, invoking the toString method of a character buffer will return a subsequence whose content depends upon the buffer's position and limit. |
An invocation of this method of the form out.append(c) behaves in exactly the same way as the invocation out.write(c) |
An invocation of this method of the form out.append(csq, start, end) when csq is not null, behaves in exactly the same way as the invocation out.write(csq.subSequence(start, end).toString()) |
|
|
|
|
|
|
|
|