org.wltea.expression.format
类 ExpressionReader
java.lang.Object
java.io.Reader
java.io.StringReader
org.wltea.expression.format.ExpressionReader
- 所有已实现的接口:
- java.io.Closeable, java.lang.Readable
public class ExpressionReader
- extends java.io.StringReader
表达式读取器
- 版本:
- 2.0
Sep 21, 2008
- 作者:
- 林良益,卓诗垚
从类 java.io.StringReader 继承的方法 |
close, markSupported, ready, skip |
从类 java.lang.Object 继承的方法 |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpressionReader
public ExpressionReader(java.lang.String s)
getCruuentIndex
public int getCruuentIndex()
- 取得当前位置
- 返回:
isPrefixBlank
public boolean isPrefixBlank()
- Element之前是否有空格
- 返回:
setPrefixBlank
public void setPrefixBlank(boolean prefixBlank)
read
public int read()
throws java.io.IOException
- 覆盖:
- 类
java.io.StringReader
中的 read
- 抛出:
java.io.IOException
read
public int read(char[] cbuf)
throws java.io.IOException
- 覆盖:
- 类
java.io.Reader
中的 read
- 抛出:
java.io.IOException
read
public int read(java.nio.CharBuffer target)
throws java.io.IOException
- 指定者:
- 接口
java.lang.Readable
中的 read
- 覆盖:
- 类
java.io.Reader
中的 read
- 抛出:
java.io.IOException
read
public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
- 覆盖:
- 类
java.io.StringReader
中的 read
- 抛出:
java.io.IOException
reset
public void reset()
throws java.io.IOException
- 覆盖:
- 类
java.io.StringReader
中的 reset
- 抛出:
java.io.IOException
mark
public void mark(int readAheadLimit)
throws java.io.IOException
- 覆盖:
- 类
java.io.StringReader
中的 mark
- 抛出:
java.io.IOException
readToken
public Element readToken()
throws java.io.IOException,
FormatException
- 以流形式读取ExpressionToken
- 返回:
- ExpressionToken
- 抛出:
java.io.IOException
FormatException
AntipathicException
main
public static void main(java.lang.String[] a)