public class WrappedBufferedWriter extends Writer
| 构造器和说明 |
|---|
WrappedBufferedWriter(File file) |
WrappedBufferedWriter(File file,
Charset charset) |
WrappedBufferedWriter(File file,
String charset) |
WrappedBufferedWriter(OutputStream output,
Charset charset) |
| 限定符和类型 | 方法和说明 |
|---|---|
Writer |
append(char c) |
Writer |
append(CharSequence csq) |
Writer |
append(CharSequence csq,
int start,
int end) |
void |
close() |
void |
flush() |
void |
newLine() |
void |
write(byte[] bytes) |
void |
write(char[] cbuf) |
void |
write(char[] cbuf,
int off,
int len) |
void |
write(int c) |
void |
write(String str) |
void |
write(String str,
int off,
int len) |
void |
writeln() |
void |
writeln(String str) |
public WrappedBufferedWriter(File file) throws FileNotFoundException
public WrappedBufferedWriter(File file, String charset) throws FileNotFoundException
public WrappedBufferedWriter(File file, Charset charset) throws FileNotFoundException
public WrappedBufferedWriter(OutputStream output, Charset charset)
public void write(String str) throws IOException
write 在类中 WriterIOExceptionpublic void write(int c)
throws IOException
write 在类中 WriterIOExceptionpublic void write(char[] cbuf)
throws IOException
write 在类中 WriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write 在类中 WriterIOExceptionpublic Writer append(CharSequence csq) throws IOException
append 在接口中 Appendableappend 在类中 WriterIOExceptionpublic Writer append(CharSequence csq, int start, int end) throws IOException
append 在接口中 Appendableappend 在类中 WriterIOExceptionpublic Writer append(char c) throws IOException
append 在接口中 Appendableappend 在类中 WriterIOExceptionpublic void flush()
throws IOException
flush 在接口中 Flushableflush 在类中 WriterIOExceptionpublic void close()
public void write(char[] cbuf,
int off,
int len)
throws IOException
write 在类中 WriterIOExceptionpublic void newLine()
throws IOException
IOExceptionpublic void write(byte[] bytes)
throws IOException
IOExceptionpublic void writeln()
throws IOException
IOExceptionpublic void writeln(String str) throws IOException
IOExceptionCopyright © 2023. All rights reserved.