public class CharWriter extends Writer
CharWriter class.
| 构造器和说明 |
|---|
CharWriter(int bufferSize)
Constructor for CharWriter.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
close.
|
void |
flush()
flush.
|
CharWriter |
init(Writer writer)
init.
|
void |
write(boolean booleanValue)
write.
|
void |
write(double doubleValue)
write.
|
void |
write(float floatValue)
write.
|
void |
write(int intValue)
write.
|
void |
write(IWritable writable)
write.
|
void |
write(long longValue)
write.
|
void |
write(String str)
write.
|
void |
write(StringBuilder stringBuilder)
write.
|
void |
write(StringBuilder stringBuilder,
int offset,
int len)
write.
|
void |
write(String str,
int offset,
int len)
write.
|
public CharWriter(int bufferSize)
Constructor for CharWriter.
bufferSize - a int.public CharWriter init(Writer writer)
init.
writer - a Writer object.CharWriter object.public void flush()
throws IOException
flush.
flush 在类中 WriterIOException - if any.public void write(String str, int offset, int len) throws IOException
write.
write 在类中 Writerstr - a String object.offset - a int.len - a int.IOException - if any.public void write(String str) throws IOException
write.
write 在类中 Writerstr - a String object.IOException - if any.public void write(StringBuilder stringBuilder, int offset, int len) throws IOException
write.
write 在类中 WriterstringBuilder - a StringBuilder object.offset - a int.len - a int.IOException - if any.public void write(StringBuilder stringBuilder) throws IOException
write.
write 在类中 WriterstringBuilder - a StringBuilder object.IOException - if any.public void write(IWritable writable) throws IOException
write.
write 在类中 Writerwritable - a IWritable object.IOException - if any.public void write(int intValue)
throws IOException
write.
write 在类中 WriterintValue - a int.IOException - if any.public void write(long longValue)
throws IOException
write.
write 在类中 WriterlongValue - a long.IOException - if any.public void write(double doubleValue)
throws IOException
write.
write 在类中 WriterdoubleValue - a double.IOException - if any.public void write(float floatValue)
throws IOException
write.
write 在类中 WriterfloatValue - a float.IOException - if any.public void write(boolean booleanValue)
throws IOException
write.
write 在类中 WriterbooleanValue - a boolean.IOException - if any.Copyright © 2023. All rights reserved.