java.lang.Objectjava.io.Writer
All Implemented Interfaces:
Flushable, Closeable, Appendable
Direct Known Subclasses:
BodyContent, FilterWriter, FileWriter, CharArrayWriter, StringWriter, NPrintWriter, JspWriter, OutputStreamWriter, PipedWriter, PrintWriter, BufferedWriter
Mark
- ReinholdJDK1.1
- Field Summary | ||
---|---|---|
protected Object | lock | The object used to synchronize operations on this stream. For efficiency, a character-stream object may use an object other than itself to protect critical sections. A subclass should therefore use the object in this field rather than this or a synchronized method. |
Constructor: |
---|
|
|
Method from java.io.Writer Summary: |
---|
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.Writer 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()) |
|
If the intended destination of this stream is an abstraction provided by the underlying operating system, for example a file, then flushing the stream guarantees only that bytes previously written to the stream are passed to the operating system for writing; it does not guarantee that they are actually written to a physical device such as a disk drive. |
Subclasses that intend to support efficient single-character output should override this method. |
|
|
|
|