Package | Description |
---|---|
java.io |
Provides for system input and output through data streams and the file system.
|
java.util |
Contains the collections framework, legacy collection classes, event model,
date and time facilities, random-number generator, and miscellaneous utility
classes.
|
Modifier and Type | Class and Description |
---|---|
class |
BufferedWriter
Writes text to a character-output stream, buffering characters so as to
provide for the efficient writing of single characters, arrays, and strings.
|
class |
OutputStreamWriter
An OutputStreamWriter is a bridge from character streams to byte streams:
Characters written to it are encoded into bytes using a specified
charset . |
Modifier and Type | Method and Description |
---|---|
Writer |
Writer.append(char c)
Appends the specified character to this writer.
|
Writer |
Writer.append(CharSequence csq)
Appends the specified character sequence to this writer.
|
Writer |
Writer.append(CharSequence csq,
int start,
int end)
Appends a subsequence of the specified character sequence to this writer.
|
Constructor and Description |
---|
BufferedWriter(Writer out)
Creates a buffered character-output stream that uses a default-sized
output buffer.
|
BufferedWriter(Writer out,
int sz)
Creates a new buffered character-output stream that uses an output
buffer of the given size.
|
Modifier and Type | Method and Description |
---|---|
void |
Properties.store(Writer writer,
String comments)
Writes this property list (key and element pairs) in this
Properties table to the output character stream in a
format suitable for using the load(Reader)
method. |
Copyright (c) 2014, Oracle and/or its affiliates. All Rights Reserved. Use of this specification is subject to license terms.