Package com.mxgraph.util.svg
Class NormalizingReader
java.lang.Object
java.io.Reader
com.mxgraph.util.svg.NormalizingReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
- Direct Known Subclasses:
StringNormalizingReader
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.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.Reader
close, mark, markSupported, nullReader, read, read, read, ready, reset, skip, transferTo
-
Constructor Details
-
NormalizingReader
public NormalizingReader()
-
-
Method Details
-
read
Read characters into a portion of an array.- Specified by:
read
in classReader
- Parameters:
cbuf
- Destination bufferoff
- Offset at which to start writing characterslen
- Maximum number of characters to read- Returns:
- The number of characters read, or -1 if the end of the stream has been reached
- Throws:
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.
-