类 UnsafeStringReader
- java.lang.Object
-
- java.io.Reader
-
- com.alibaba.dubbo.common.io.UnsafeStringReader
-
- 所有已实现的接口:
Closeable
,AutoCloseable
,Readable
public class UnsafeStringReader extends Reader
Thread-unsafe StringReader.
-
-
构造器概要
构造器 构造器 说明 UnsafeStringReader(String str)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
close()
void
mark(int readAheadLimit)
boolean
markSupported()
int
read()
int
read(char[] cs, int off, int len)
boolean
ready()
void
reset()
long
skip(long ns)
-
从类继承的方法 java.io.Reader
nullReader, read, read, transferTo
-
-
-
-
构造器详细资料
-
UnsafeStringReader
public UnsafeStringReader(String str)
-
-
方法详细资料
-
read
public int read() throws IOException
- 覆盖:
read
在类中Reader
- 抛出:
IOException
-
read
public int read(char[] cs, int off, int len) throws IOException
- 指定者:
read
在类中Reader
- 抛出:
IOException
-
skip
public long skip(long ns) throws IOException
- 覆盖:
skip
在类中Reader
- 抛出:
IOException
-
ready
public boolean ready() throws IOException
- 覆盖:
ready
在类中Reader
- 抛出:
IOException
-
markSupported
public boolean markSupported()
- 覆盖:
markSupported
在类中Reader
-
mark
public void mark(int readAheadLimit) throws IOException
- 覆盖:
mark
在类中Reader
- 抛出:
IOException
-
reset
public void reset() throws IOException
- 覆盖:
reset
在类中Reader
- 抛出:
IOException
-
close
public void close() throws IOException
- 指定者:
close
在接口中AutoCloseable
- 指定者:
close
在接口中Closeable
- 指定者:
close
在类中Reader
- 抛出:
IOException
-
-