public class ExtBufferedWriter extends BufferedWriter
| 限定符和类型 | 字段和说明 |
|---|---|
static char |
MALFORMED_CHAR
Replace malformed characters
|
| 构造器和说明 |
|---|
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 void |
getChars(int i,
int maxIndex,
char[] buf) |
static void |
getChars(long i,
int maxIndex,
char[] buf) |
static int |
stringSize(int x) |
static int |
stringSize(long x) |
static char[] |
toChars(int i) |
static 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
|
void |
writeUTF8(char[] cb,
int off,
int len)
Write utf-8 string
|
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 void writeUTF8(char[] cb,
int off,
int len)
throws IOException
cb - A character arrayoff - Offset from which to start reading characterslen - Number of characters to writeIOException - if I/O error occurpublic static char[] toChars(int i)
public static int stringSize(int x)
public static void getChars(int i,
int maxIndex,
char[] buf)
public static char[] toChars(long i)
public static int stringSize(long x)
public static void getChars(long i,
int maxIndex,
char[] buf)
Copyright © 2024. All rights reserved.