Class StreamNormalizingReader

java.lang.Object
java.io.Reader
org.apache.batik.util.io.NormalizingReader
org.apache.batik.util.io.StreamNormalizingReader
All Implemented Interfaces:
Closeable, AutoCloseable, Readable
Direct Known Subclasses:
XMLStreamNormalizingReader

public class StreamNormalizingReader extends NormalizingReader
This class represents a NormalizingReader which handles streams of bytes.
  • Field Details

    • charDecoder

      protected CharDecoder charDecoder
      The char decoder.
    • nextChar

      protected int nextChar
      The next char.
    • line

      protected int line
      The current line in the stream.
    • column

      protected int column
      The current column in the stream.
    • charDecoderFactories

      protected static final Map charDecoderFactories
      The CharDecoder factories map.
  • Constructor Details

    • StreamNormalizingReader

      public StreamNormalizingReader(InputStream is) throws IOException
      Creates a new NormalizingReader. The encoding is assumed to be ISO-8859-1.
      Parameters:
      is - The input stream to decode.
      Throws:
      IOException
    • StreamNormalizingReader

      public StreamNormalizingReader(InputStream is, String enc) throws IOException
      Creates a new NormalizingReader.
      Parameters:
      is - The input stream to decode.
      enc - The standard encoding name. A null encoding means ISO-8859-1.
      Throws:
      IOException
    • StreamNormalizingReader

      public StreamNormalizingReader(Reader r) throws IOException
      Creates a new NormalizingReader.
      Parameters:
      r - The reader to wrap.
      Throws:
      IOException
    • StreamNormalizingReader

      protected StreamNormalizingReader()
      This constructor is intended for use by subclasses.
  • Method Details