public abstract class Writer extends Object
Abstract Writer class.
| 限定符和类型 | 字段和说明 |
|---|---|
protected DateFormats |
formats |
| 构造器和说明 |
|---|
Writer() |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract void |
close()
close.
|
abstract void |
flush()
flush.
|
abstract void |
write(boolean booleanValue)
write.
|
void |
write(Date date,
String datePattern)
write.
|
abstract void |
write(double doubleValue)
write.
|
abstract void |
write(float floatValue)
write.
|
abstract void |
write(int intValue)
write.
|
abstract void |
write(IWritable writable)
write.
|
abstract void |
write(long longValue)
write.
|
void |
write(short shortValue)
write.
|
abstract void |
write(String string)
write.
|
abstract void |
write(StringBuilder stringBuilder)
write.
|
abstract void |
write(StringBuilder stringBuilder,
int offset,
int length)
write.
|
abstract void |
write(String string,
int offset,
int length)
write.
|
protected DateFormats formats
public abstract void flush()
throws IOException
flush.
IOException - if any.public abstract void close()
close.
public abstract void write(IWritable writable) throws IOException
write.
writable - a IWritable object.IOException - if any.public abstract void write(String string, int offset, int length) throws IOException
write.
string - a String object.offset - a int.length - a int.IOException - if any.public abstract void write(String string) throws IOException
write.
string - a String object.IOException - if any.public abstract void write(StringBuilder stringBuilder, int offset, int length) throws IOException
write.
stringBuilder - a StringBuilder object.offset - a int.length - a int.IOException - if any.public abstract void write(StringBuilder stringBuilder) throws IOException
write.
stringBuilder - a StringBuilder object.IOException - if any.public abstract void write(boolean booleanValue)
throws IOException
write.
booleanValue - a boolean.IOException - if any.public abstract void write(int intValue)
throws IOException
write.
intValue - a int.IOException - if any.public abstract void write(long longValue)
throws IOException
write.
longValue - a long.IOException - if any.public abstract void write(double doubleValue)
throws IOException
write.
doubleValue - a double.IOException - if any.public abstract void write(float floatValue)
throws IOException
write.
floatValue - a float.IOException - if any.public void write(short shortValue)
throws IOException
write.
shortValue - a short.IOException - if any.public void write(Date date, String datePattern) throws IOException
write.
date - a Date object.datePattern - a String object.IOException - if any.Copyright © 2023. All rights reserved.