public class BufferedWriter extends Writer
| Modifier and Type | Method and Description |
|---|---|
Writer |
append(char c) |
Writer |
append(CharSequence csq) |
Writer |
append(CharSequence csq,
int start,
int end) |
void |
close() |
void |
flush() |
void |
newLine() |
String |
toString() |
void |
write(boolean b) |
void |
write(byte b) |
void |
write(Calendar c) |
void |
write(char c) |
void |
write(char[] cbuf) |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(Date date) |
void |
write(double d) |
void |
write(float f) |
void |
write(int ch)
Deprecated.
Replaced with write(char).
|
void |
write(long lng) |
void |
write(short s) |
void |
write(String str) |
void |
write(String str,
int off,
int len) |
void |
write(XMLGregorianCalendar c) |
void |
writeInt(int i) |
public void write(boolean b)
throws IOException
b - IOException - Signals that an I/O exception has occurred.public void write(byte b)
throws IOException
b - IOException - Signals that an I/O exception has occurred.public void write(short s)
throws IOException
s - IOException - Signals that an I/O exception has occurred.@Deprecated public void write(int ch) throws IOException
write in class Writerch - IOException - Signals that an I/O exception has occurred.public void writeInt(int i)
throws IOException
i - IOException - Signals that an I/O exception has occurred.public void write(long lng)
throws IOException
lng - IOException - Signals that an I/O exception has occurred.public void write(float f)
throws IOException
f - IOException - Signals that an I/O exception has occurred.public void write(double d)
throws IOException
d - IOException - Signals that an I/O exception has occurred.public void write(Date date) throws IOException
date - IOException - Signals that an I/O exception has occurred.public void write(Calendar c) throws IOException
c - IOException - Signals that an I/O exception has occurred.public void write(XMLGregorianCalendar c) throws IOException
c - IOException - Signals that an I/O exception has occurred.public void write(char c)
throws IOException
c - IOException - Signals that an I/O exception has occurred.public void write(String str) throws IOException
write in class Writerstr - IOException - Signals that an I/O exception has occurred.public void write(String str, int off, int len) throws IOException
write in class Writerstr - off - len - IOException - Signals that an I/O exception has occurred.public void write(char[] cbuf)
throws IOException
write in class Writercbuf - IOException - Signals that an I/O exception has occurred.public void write(char[] cbuf,
int off,
int len)
throws IOException
write in class Writercbuf - off - len - IOException - Signals that an I/O exception has occurred.public void newLine()
throws IOException
IOException - Signals that an I/O exception has occurred.public Writer append(CharSequence csq) throws IOException
append in interface Appendableappend in class Writercsq - IOException - Signals that an I/O exception has occurred.public Writer append(CharSequence csq, int start, int end) throws IOException
append in interface Appendableappend in class Writercsq - start - end - IOException - Signals that an I/O exception has occurred.public Writer append(char c) throws IOException
append in interface Appendableappend in class Writerc - IOException - Signals that an I/O exception has occurred.public void flush()
throws IOException
flush in interface Flushableflush in class WriterIOException - Signals that an I/O exception has occurred.public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOException - Signals that an I/O exception has occurred.public String toString() throws UncheckedIOException
toString in class ObjectUncheckedIOException - the unchecked IO exceptionCopyright © 2021. All rights reserved.