# Class StringReader

java.lang.Object
java.io.Reader
com.codename1.util.regex.StringReader

All Implemented Interfaces:
  `Closeable, AutoCloseable, Readable`

public class StringReader extends Reader

- ## Field Summary

  ### Fields inherited from class Reader

  `lock`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `StringReader(String str)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  `int`
  `read()`
  `int`
  `read(char[] cbuf, int off, int len)`
  `String`
  `readLine()`
  `boolean`
  `ready()`

  ### Methods inherited from class Reader

  `mark, markSupported, read, read, reset, skip`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### StringReader

    public StringReader(String str)

- ## Method Details

  - ### read

    public int read()
    Overrides:
      `read` in class `Reader`

  - ### read

    public int read(char[] cbuf, int off, int len)
    Specified by:
      `read` in class `Reader`

  - ### close

    public void close()
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `Closeable`
    Specified by:
      `close` in class `Reader`

  - ### readLine

    public String readLine()

  - ### ready

    public boolean ready()
    Overrides:
      `ready` in class `Reader`