com.alibaba.dubbo.common.io
Class UnsafeStringReader
java.lang.Object
java.io.Reader
com.alibaba.dubbo.common.io.UnsafeStringReader
- All Implemented Interfaces:
- Closeable, Readable
public class UnsafeStringReader
- extends Reader
Thread unsafed StringReader.
- Author:
- qian.lei
UnsafeStringReader
public UnsafeStringReader(String str)
read
public int read()
throws IOException
- Overrides:
read
in class Reader
- Throws:
IOException
read
public int read(char[] cs,
int off,
int len)
throws IOException
- Specified by:
read
in class Reader
- Throws:
IOException
skip
public long skip(long ns)
throws IOException
- Overrides:
skip
in class Reader
- Throws:
IOException
ready
public boolean ready()
throws IOException
- Overrides:
ready
in class Reader
- Throws:
IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class Reader
mark
public void mark(int readAheadLimit)
throws IOException
- Overrides:
mark
in class Reader
- Throws:
IOException
reset
public void reset()
throws IOException
- Overrides:
reset
in class Reader
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Reader
- Throws:
IOException
Copyright © 2012–2017 Alibaba. All rights reserved.