Package com.mxgraph.util.svg
Class StringNormalizingReader
- java.lang.Object
-
- java.io.Reader
-
- com.mxgraph.util.svg.NormalizingReader
-
- com.mxgraph.util.svg.StringNormalizingReader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
,java.lang.Readable
public class StringNormalizingReader extends NormalizingReader
This class represents a NormalizingReader which handles Strings.
-
-
Constructor Summary
Constructors Constructor Description StringNormalizingReader(java.lang.String s)
Creates a new StringNormalizingReader.
-
Method Summary
-
Methods inherited from class com.mxgraph.util.svg.NormalizingReader
read
-
-
-
-
Method Detail
-
read
public int read() throws java.io.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.- Overrides:
read
in classjava.io.Reader
- Throws:
java.io.IOException
-
getLine
public int getLine()
Returns the current line in the stream.- Specified by:
getLine
in classNormalizingReader
-
getColumn
public int getColumn()
Returns the current column in the stream.- Specified by:
getColumn
in classNormalizingReader
-
close
public void close() throws java.io.IOException
Close the stream.- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Specified by:
close
in classjava.io.Reader
- Throws:
java.io.IOException
-
-