better.files

Scanner

class Scanner extends AnyRef

Faster, safer and more idiomatic Scala replacement for java.util.Scanner See: http://codeforces.com/blog/entry/7018

Self Type
Scanner
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Scanner
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Scanner(str: String, delimiter: String = Scanner.defaultDelimiter, includeDelimiters: Boolean = false)

  2. new Scanner(file: File, delimiter: String, includeDelimiters: Boolean)(implicit codec: Codec)

  3. new Scanner(inputStream: InputStream, delimiter: String, includeDelimiters: Boolean)(implicit codec: Codec)

  4. new Scanner(inputStreamReader: InputStreamReader, delimiter: String, includeDelimiters: Boolean)

  5. new Scanner(reader: BufferedReader, delimiter: String, includeDelimiters: Boolean)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def close(): Unit

  9. val delimiter: String

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hasMoreTokens: Boolean

  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. val includeDelimiters: Boolean

  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def iterator[A](implicit arg0: Scannable[A]): Iterator[A]

  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. def next[A]()(implicit arg0: Scannable[A]): Option[A]

  21. def next(pattern: String)(): Option[String]

  22. def nextDefined[A](f: (String) ⇒ Option[A]): Option[A]

  23. def nextLine(): Option[String]

  24. def nextMatch(f: (String) ⇒ Boolean): Option[String]

  25. def nextSuccess[A](f: (String) ⇒ Try[A]): Option[A]

  26. def nextToken(): String

  27. def nextTry[A](f: (String) ⇒ A): Option[A]

  28. final def notify(): Unit

    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  30. def peek[A](implicit arg0: Scannable[A]): Option[A]

  31. def peekDefined[A](f: (String) ⇒ Option[A]): Option[A]

  32. def peekLine: Option[String]

  33. def peekSuccess[A](f: (String) ⇒ Try[A]): Option[A]

  34. def peekToken: Option[String]

  35. def peekTry[A](f: (String) ⇒ A): Option[A]

  36. def scan[A](moveToNextToken: Boolean)(implicit arg0: Scannable[A]): Option[A]

  37. def skip(pattern: String): Scanner

  38. def skip(tokens: Int): Scanner

  39. def skipLine(): Scanner

  40. def skipLines(lines: Int, startAtBeginningOfNextLine: Boolean = true): Scanner

  41. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  42. def toString(): String

    Definition Classes
    AnyRef → Any
  43. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped