Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>OutputStream:</strong></p> <p>This abstract class is the superclass of all classes representing an output stream of bytes. An output stream accepts output bytes and sends them to some sink.</p> <p>Applications that need to define a subclass of <code>OutputStream</code> must always provide at least a method that writes one byte of output. </p> <p>For example:</p> <pre><code>OutputStream os = new FileOutputStream("test.txt"); </code></pre> <p><strong><em>BufferedWriter</em></strong></p> <p>Writes text to a character-output stream, buffering characters so as to provide for the efficient writing of single characters, arrays, and strings. The buffer size may be specified, or the default size may be accepted. The default is large enough for most purposes.</p> <p>A <code>newLine()</code> method is provided, which uses the platform's own notion of line separator as defined by the system property line.separator. Not all platforms use the newline character ('\n') to terminate lines. Calling this method to terminate each output line is therefore preferred to writing a newline character directly.</p> <p>In general, a Writer sends its output immediately to the underlying character or byte stream. Unless prompt output is required, it is advisable to wrap a <code>BufferedWriter</code> around any Writer whose <code>write()</code> operations may be costly, such as <code>FileWriters</code> and <code>OutputStreamWriters</code>. </p> <p>For example:</p> <pre><code> PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("foo.out"))); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload