public class ExtBufferedWriter extends BufferedWriter
| 限定符和类型 | 字段和说明 |
|---|---|
static char[] |
digitOnes |
static char[] |
digits |
static char[] |
digits_uppercase |
static char[] |
digitTens |
| 构造器和说明 |
|---|
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) |
char[] |
toChars(int i) |
char[] |
toChars(long i) |
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 static final char[] digitTens
public static final char[] digitOnes
public static final char[] digits
public static final char[] digits_uppercase
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 char[] toChars(int i)
public static int stringSize(int x)
public char[] toChars(long i)
public static int stringSize(long x)
Copyright © 2023. All rights reserved.