|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.io.Writer
com.alibaba.fastjson.serializer.SerializeWriter
public final class SerializeWriter
| 构造方法摘要 | |
|---|---|
SerializeWriter()
|
|
SerializeWriter(int initialSize)
|
|
SerializeWriter(SerializerFeature... features)
|
|
SerializeWriter(Writer writer)
|
|
SerializeWriter(Writer writer,
int initialSize)
|
|
SerializeWriter(Writer writer,
SerializerFeature... features)
|
|
| 方法摘要 | |
|---|---|
SerializeWriter |
append(char c)
|
SerializeWriter |
append(CharSequence csq)
|
SerializeWriter |
append(CharSequence csq,
int start,
int end)
|
void |
close()
Close the stream. |
void |
config(SerializerFeature feature,
boolean state)
|
void |
expandCapacity(int minimumCapacity)
|
void |
flush()
|
int |
getBufferLength()
|
boolean |
isEnabled(SerializerFeature feature)
|
void |
reset()
|
int |
size()
|
byte[] |
toBytes(String charsetName)
|
char[] |
toCharArray()
Returns a copy of the input data. |
String |
toString()
|
void |
write(boolean value)
|
void |
write(char c)
|
void |
write(char[] c,
int off,
int len)
Writes characters to the buffer. |
void |
write(int c)
Writes a character to the buffer. |
void |
write(String text)
|
void |
write(String str,
int off,
int len)
Write a portion of a string to the buffer. |
void |
writeByteArray(byte[] bytes)
|
void |
writeFieldName(String key)
|
void |
writeFieldName(String key,
boolean checkSpecial)
|
void |
writeFieldValue(char seperator,
String name,
long value)
|
void |
writeFieldValue(char seperator,
String name,
String value)
|
void |
writeFieldValue1(char seperator,
String name,
long value)
|
void |
writeInt(int i)
|
void |
writeLong(long i)
|
void |
writeLongAndChar(long i,
char c)
|
void |
writeNull()
|
void |
writeString(String text)
|
void |
writeTo(OutputStream out,
Charset charset)
|
void |
writeTo(OutputStream out,
String charsetName)
|
void |
writeTo(Writer out)
Writes the contents of the buffer to another character stream. |
| 从类 java.io.Writer 继承的方法 |
|---|
write |
| 从类 java.lang.Object 继承的方法 |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public SerializeWriter()
public SerializeWriter(Writer writer)
public SerializeWriter(SerializerFeature... features)
public SerializeWriter(Writer writer,
SerializerFeature... features)
public SerializeWriter(int initialSize)
public SerializeWriter(Writer writer,
int initialSize)
| 方法详细信息 |
|---|
public int getBufferLength()
public void config(SerializerFeature feature,
boolean state)
public boolean isEnabled(SerializerFeature feature)
public void write(int c)
Writer 中的 writepublic void write(char c)
public void write(char[] c,
int off,
int len)
Writer 中的 writec - the data to be writtenoff - the start offset in the datalen - the number of chars that are writtenpublic void expandCapacity(int minimumCapacity)
public void write(String str,
int off,
int len)
Writer 中的 writestr - String to be written fromoff - Offset from which to start reading characterslen - Number of characters to be written
public void writeTo(Writer out)
throws IOException
out - the output stream to write to
IOException - If an I/O error occurs.
public void writeTo(OutputStream out,
String charsetName)
throws IOException
IOException
public void writeTo(OutputStream out,
Charset charset)
throws IOException
IOExceptionpublic SerializeWriter append(CharSequence csq)
Appendable 中的 appendWriter 中的 append
public SerializeWriter append(CharSequence csq,
int start,
int end)
Appendable 中的 appendWriter 中的 appendpublic SerializeWriter append(char c)
Appendable 中的 appendWriter 中的 appendpublic void reset()
public char[] toCharArray()
public byte[] toBytes(String charsetName)
public int size()
public String toString()
Object 中的 toStringpublic void close()
Closeable 中的 closeWriter 中的 closepublic void write(String text)
Writer 中的 writepublic void writeInt(int i)
public void writeByteArray(byte[] bytes)
public void writeLongAndChar(long i,
char c)
throws IOException
IOExceptionpublic void writeLong(long i)
public void writeNull()
public void write(boolean value)
public void writeFieldValue(char seperator,
String name,
long value)
public void writeFieldValue1(char seperator,
String name,
long value)
public void writeFieldValue(char seperator,
String name,
String value)
public void writeString(String text)
public void writeFieldName(String key)
public void writeFieldName(String key,
boolean checkSpecial)
public void flush()
Flushable 中的 flushWriter 中的 flush
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||