public class AppendableWriter extends Writer implements Appendable
Writer和实现Appendable的聚合类,用于适配两种接口操作
实现来自:jodd| 构造器和说明 |
|---|
AppendableWriter(Appendable appendable)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
Writer |
append(char c) |
Writer |
append(CharSequence csq) |
Writer |
append(CharSequence csq,
int start,
int end) |
void |
close() |
void |
flush() |
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) |
public AppendableWriter(Appendable appendable)
appendable - Appendablepublic void write(char[] cbuf,
int off,
int len)
throws IOException
write 在类中 WriterIOExceptionpublic void write(int c)
throws IOException
write 在类中 WriterIOExceptionpublic Writer append(char c) throws IOException
append 在接口中 Appendableappend 在类中 WriterIOExceptionpublic Writer append(CharSequence csq, int start, int end) throws IOException
append 在接口中 Appendableappend 在类中 WriterIOExceptionpublic Writer append(CharSequence csq) throws IOException
append 在接口中 Appendableappend 在类中 WriterIOExceptionpublic void write(String str, int off, int len) throws IOException
write 在类中 WriterIOExceptionpublic void write(String str) throws IOException
write 在类中 WriterIOExceptionpublic void write(char[] cbuf)
throws IOException
write 在类中 WriterIOExceptionpublic void flush()
throws IOException
flush 在接口中 Flushableflush 在类中 WriterIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 WriterIOExceptionCopyright © 2023. All rights reserved.