src/com/chenlb/mmseg4j/MMSeg.java
private int readChars(StringBuilder bufSentence, ReadChar readChar) throws IOException {
		int num = 0;
		int data = -1;
		while((data = readNext()) != -1) {
			int d = readChar.transform(data);
			if(readChar.isRead(d)) {
				bufSentence.appendCodePoint(d);
				num++;
			} else {	//不是数字回压,要下一步操作
				pushBack(data);
				break;
			}
		}
		return num;
	}
private int readChars(StringBuilder bufSentence, ReadChar readChar) throws IOException {
		int num = 0;
		int data = -1;
		while((data = readNext()) != -1) {
			int d = readChar.transform(data);
			if(readChar.isRead(d)) {
				bufSentence.appendCodePoint(d);
				num++;
			} else {	//不是数字回压,要下一步操作
				pushBack(data);
				break;
			}
		}
		return num;
	}
private int readChars ( StringBuilder bufSentence , ReadChar readChar ) throws IOException { int num = 0 ; int data = - 1 ; while ( ( data = readNext ( ) ) != - 1 ) { int d = readChar . transform ( data ) ; if ( readChar . isRead ( d ) ) { bufSentence . appendCodePoint ( d ) ; num ++ ; } else { //不是数字回压,要下一步操作
 pushBack ( data ) ; break ; } } return num ; }
读取下一串指定类型的字符放到 bufSentence 中.
@param bufSentence
@param readChar 判断字符的细节.
@return 返回读取的个数
@throws IOException {@link #readNext()} 或 {@link #pushBack()} 抛出的.
读取下一串指定类型的字符放到 bufSentence 中 .