org.apache.batik.util.io

Class NormalizingReader

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.
Method Summary
abstract intgetColumn()
Returns the current column in the stream.
abstract intgetLine()
Returns the current line in the stream.
intread(char[] cbuf, int off, int len)
Read characters into a portion of an array.

Method Detail

getColumn

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

getLine

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

read

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

Parameters: cbuf Destination buffer off Offset at which to start writing characters len Maximum number of characters to read

Returns: The number of characters read, or -1 if the end of the stream has been reached

Copyright B) 2007 Apache Software Foundation. All Rights Reserved.