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

java.lang.Object
  拡張java.io.Reader
      拡張jp.cssj.sakae.sac.util.io.NormalizingReader
直系の既知のサブクラス:
StreamNormalizingReader, StringNormalizingReader

public abstract class NormalizingReader
extends Reader

This class represents a reader which normalizes the line break: \n, \r, \r\n are replaced by \n. The methods of this reader are not synchronized. The input is buffered.

バージョン:
$Id: NormalizingReader.java,v 1.2 2007-05-06 04:24:07 miyabe Exp $
作成者:
Stephane Hillion

フィールドの概要
 
クラス java.io.Reader から継承したフィールド
lock
 
コンストラクタの概要
NormalizingReader()
           
 
メソッドの概要
abstract  int getColumn()
          Returns the current column in the stream.
abstract  int getLine()
          Returns the current line in the stream.
 int read(char[] cbuf, int off, int len)
          Read characters into a portion of an array.
 
クラス java.io.Reader から継承したメソッド
close, mark, markSupported, read, read, ready, reset, skip
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

NormalizingReader

public NormalizingReader()
メソッドの詳細

read

public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
Read characters into a portion of an array.

パラメータ:
cbuf - Destination buffer
off - Offset at which to start writing characters
len - Maximum number of characters to read
戻り値:
The number of characters read, or -1 if the end of the stream has been reached
例外:
IOException

getLine

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


getColumn

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



(c)2009 GNN & Co.,Ltd.