类 UnsafeStringWriter
- java.lang.Object
-
- java.io.Writer
-
- com.alibaba.dubbo.common.io.UnsafeStringWriter
-
- 所有已实现的接口:
Closeable
,Flushable
,Appendable
,AutoCloseable
public class UnsafeStringWriter extends Writer
Thread-unsafe StringWriter.
-
-
构造器概要
构造器 构造器 说明 UnsafeStringWriter()
UnsafeStringWriter(int size)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Writer
append(char c)
Writer
append(CharSequence csq)
Writer
append(CharSequence csq, int start, int end)
void
close()
void
flush()
String
toString()
void
write(char[] cs)
void
write(char[] cs, int off, int len)
void
write(int c)
void
write(String str)
void
write(String str, int off, int len)
-
从类继承的方法 java.io.Writer
nullWriter
-
-
-
-
方法详细资料
-
write
public void write(char[] cs) throws IOException
- 覆盖:
write
在类中Writer
- 抛出:
IOException
-
write
public void write(char[] cs, int off, int len) throws IOException
- 指定者:
write
在类中Writer
- 抛出:
IOException
-
append
public Writer append(CharSequence csq)
- 指定者:
append
在接口中Appendable
- 覆盖:
append
在类中Writer
-
append
public Writer append(CharSequence csq, int start, int end)
- 指定者:
append
在接口中Appendable
- 覆盖:
append
在类中Writer
-
append
public Writer append(char c)
- 指定者:
append
在接口中Appendable
- 覆盖:
append
在类中Writer
-
close
public void close()
-
-