public class ExtBufferedWriter extends BufferedWriter
| 构造器和说明 |
|---|
ExtBufferedWriter(Writer out) |
ExtBufferedWriter(Writer out,
int sz) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
escapeWrite(char c)
Write as escape character
|
void |
escapeWrite(String text)
Write as escape text
|
static int |
stringSize(int x) |
static int |
stringSize(long x) |
void |
write(double d)
Write double-precision floating-point value
|
void |
write(float f)
Write single-precision floating-point value
|
void |
write(long l)
Write long value
|
void |
writeInt(int n)
Write integer value
|
public ExtBufferedWriter(Writer out)
public ExtBufferedWriter(Writer out, int sz)
public void writeInt(int n)
throws IOException
n - the integer valueIOException - if I/O error occurpublic void write(long l)
throws IOException
l - the long valueIOException - if I/O error occurpublic void write(float f)
throws IOException
f - the single-precision floating-point valueIOException - if I/O error occurpublic void escapeWrite(char c)
throws IOException
c - a character valueIOException - if I/O error occurpublic void escapeWrite(String text) throws IOException
text - stringIOException - if I/O error occurpublic void write(double d)
throws IOException
d - the double-precision floating-point valueIOException - if I/O error occurpublic static int stringSize(int x)
public static int stringSize(long x)
Copyright © 2020. All rights reserved.