jp.cssj.sakae.sac.util.io
クラス StringNormalizingReader

java.lang.Object
  拡張java.io.Reader
      拡張jp.cssj.sakae.sac.util.io.NormalizingReader
          拡張jp.cssj.sakae.sac.util.io.StringNormalizingReader

public class StringNormalizingReader
extends NormalizingReader

This class represents a NormalizingReader which handles Strings.

バージョン:
$Id: StringNormalizingReader.java,v 1.2 2003/08/08 11:39:27 vhardy Exp $
作成者:
Stephane Hillion

フィールドの概要
protected  int column
          The current column in the stream.
protected  int length
          The length of the string.
protected  int line
          The current line in the stream.
protected  int next
          The index of the next character.
protected  String string
          The characters.
 
クラス java.io.Reader から継承したフィールド
lock
 
コンストラクタの概要
StringNormalizingReader(String s)
          Creates a new StringNormalizingReader.
 
メソッドの概要
 void close()
          Close the stream.
 int getColumn()
          Returns the current column in the stream.
 int getLine()
          Returns the current line in the stream.
 int read()
          Read a single character.
 
クラス jp.cssj.sakae.sac.util.io.NormalizingReader から継承したメソッド
read
 
クラス java.io.Reader から継承したメソッド
mark, markSupported, read, ready, reset, skip
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

string

protected String string
The characters.


length

protected int length
The length of the string.


next

protected int next
The index of the next character.


line

protected int line
The current line in the stream.


column

protected int column
The current column in the stream.

コンストラクタの詳細

StringNormalizingReader

public StringNormalizingReader(String s)
Creates a new StringNormalizingReader.

パラメータ:
s - The string to read.
メソッドの詳細

read

public int read()
         throws IOException
Read a single character. This method will block until a character is available, an I/O error occurs, or the end of the stream is reached.

例外:
IOException

getLine

public int getLine()
Returns the current line in the stream.

定義:
クラス NormalizingReader 内の getLine

getColumn

public int getColumn()
Returns the current column in the stream.

定義:
クラス NormalizingReader 内の getColumn

close

public void close()
           throws IOException
Close the stream.

例外:
IOException


(c)2009 GNN & Co.,Ltd.