Class StringReader

java.lang.Object
java.io.Reader
com.codename1.util.regex.StringReader
All Implemented Interfaces:
java.io.Closeable, AutoCloseable, java.lang.Readable

public class StringReader extends java.io.Reader
  • Field Summary

    Fields inherited from class java.io.Reader

    lock
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    int
     
    int
    read(char[] cbuf, int off, int len)
     
     
    boolean
     

    Methods inherited from class java.io.Reader

    mark, markSupported, read, read, reset, skip

    Methods inherited from class java.lang.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 java.io.Reader
    • read

      public int read(char[] cbuf, int off, int len)
      Specified by:
      read in class java.io.Reader
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface java.io.Closeable
      Specified by:
      close in class java.io.Reader
    • readLine

      public String readLine()
    • ready

      public boolean ready()
      Overrides:
      ready in class java.io.Reader