scala.tools.nsc.util

# JavaCharArrayReader

#### class JavaCharArrayReader extends Iterator[Char] with Cloneable

Linear Supertypes
Cloneable, java.lang.Cloneable, collection.Iterator[Char], collection.TraversableOnce[Char], GenTraversableOnce[Char], AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering

1. Alphabetic
2. By inheritance

Inherited

1. JavaCharArrayReader
2. Cloneable
3. Cloneable
4. Iterator
5. TraversableOnce
6. GenTraversableOnce
7. AnyRef
8. Any

Implicitly

1. by MonadOps
2. by any2stringadd
3. by any2stringfmt
4. by any2ArrowAssoc
5. by any2Ensuring
6. by alternateImplicit

1. Hide All
2. Show all

Learn more about member selection
Visibility

1. Public
2. All

### Instance Constructors

1. #### new JavaCharArrayReader(buf: IndexedSeq[Char], decodeUni: Boolean, error: (String) ⇒ Unit)

2. #### new JavaCharArrayReader(buf: IndexedSeq[Char], start: Int, decodeUni: Boolean, error: (String) ⇒ Unit)

### Type Members

1. #### class GroupedIterator[B >: A] extends AbstractIterator[collection.Seq[B]] with collection.Iterator[collection.Seq[B]]

   Definition Classes
     Iterator

### 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. #### def +(other: String): String

   Implicit information
     This member is added by an implicit conversion from JavaCharArrayReader to StringAdd performed by method any2stringadd in scala.Predef.
   Definition Classes
     StringAdd

5. #### def ++[B >: Char](that: ⇒ GenTraversableOnce[B]): collection.Iterator[B]

   Definition Classes
     Iterator

6. #### def ->[B](y: B): (JavaCharArrayReader, B)

   Implicit information
     This member is added by an implicit conversion from JavaCharArrayReader to ArrowAssoc[JavaCharArrayReader] performed by method any2ArrowAssoc in scala.Predef.
   Definition Classes
     ArrowAssoc
   Annotations
     @inline()

7. #### def /:[B](z: B)(op: (B, Char) ⇒ B): B

   Definition Classes
     TraversableOnce → GenTraversableOnce

8. #### def :\[B](z: B)(op: (Char, B) ⇒ B): B

   Definition Classes
     TraversableOnce → GenTraversableOnce

9. #### final def ==(arg0: AnyRef): Boolean

   Definition Classes
     AnyRef

10. #### final def ==(arg0: Any): Boolean

    Definition Classes
      Any

11. #### def addString(b: StringBuilder): StringBuilder

    Definition Classes
      TraversableOnce

12. #### def addString(b: StringBuilder, sep: String): StringBuilder

    Definition Classes
      TraversableOnce

13. #### def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Definition Classes
      TraversableOnce

14. #### def aggregate[B](z: B)(seqop: (B, Char) ⇒ B, combop: (B, B) ⇒ B): B

    Definition Classes
      TraversableOnce → GenTraversableOnce

15. #### final def asInstanceOf[T0]: T0

    Definition Classes
      Any

16. #### var bp: Int

17. #### def buffered: collection.BufferedIterator[Char]

    Definition Classes
      Iterator

18. #### var ch: Char

    the line and column position of the current character

19. #### def clone(): AnyRef

    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( ... )

20. #### def collect[B](pf: PartialFunction[Char, B]): collection.Iterator[B]

    Definition Classes
      Iterator
    Annotations
      @migration
    Migration

      (Changed in version 2.8.0) `collect` has changed. The previous behavior can be reproduced with `toSeq`.

21. #### def collectFirst[B](pf: PartialFunction[Char, B]): Option[B]

    Definition Classes
      TraversableOnce

22. #### def contains(elem: Any): Boolean

    Definition Classes
      Iterator

23. #### def copy: JavaCharArrayReader

24. #### def copyToArray[B >: Char](xs: Array[B], start: Int, len: Int): Unit

    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce

25. #### def copyToArray[B >: Char](xs: Array[B]): Unit

    Definition Classes
      TraversableOnce → GenTraversableOnce

26. #### def copyToArray[B >: Char](xs: Array[B], start: Int): Unit

    Definition Classes
      TraversableOnce → GenTraversableOnce

27. #### def copyToBuffer[B >: Char](dest: Buffer[B]): Unit

    Definition Classes
      TraversableOnce

28. #### def corresponds[B](that: GenTraversableOnce[B])(p: (Char, B) ⇒ Boolean): Boolean

    Definition Classes
      Iterator

29. #### def count(p: (Char) ⇒ Boolean): Int

    Definition Classes
      TraversableOnce → GenTraversableOnce

30. #### def cpos: Int

31. #### def drop(n: Int): collection.Iterator[Char]

    Definition Classes
      Iterator

32. #### def dropWhile(p: (Char) ⇒ Boolean): collection.Iterator[Char]

    Definition Classes
      Iterator

33. #### def dup: JavaCharArrayReader

    produce a duplicate of this char array reader which starts reading at current position, independent of what happens to original reader

34. #### def duplicate: (collection.Iterator[Char], collection.Iterator[Char])

    Definition Classes
      Iterator

35. #### def ensuring(cond: (JavaCharArrayReader) ⇒ Boolean, msg: ⇒ Any): JavaCharArrayReader

    Implicit information
      This member is added by an implicit conversion from JavaCharArrayReader to Ensuring[JavaCharArrayReader] performed by method any2Ensuring in scala.Predef.
    Definition Classes
      Ensuring

36. #### def ensuring(cond: (JavaCharArrayReader) ⇒ Boolean): JavaCharArrayReader

    Implicit information
      This member is added by an implicit conversion from JavaCharArrayReader to Ensuring[JavaCharArrayReader] performed by method any2Ensuring in scala.Predef.
    Definition Classes
      Ensuring

37. #### def ensuring(cond: Boolean, msg: ⇒ Any): JavaCharArrayReader

    Implicit information
      This member is added by an implicit conversion from JavaCharArrayReader to Ensuring[JavaCharArrayReader] performed by method any2Ensuring in scala.Predef.
    Definition Classes
      Ensuring

38. #### def ensuring(cond: Boolean): JavaCharArrayReader

    Implicit information
      This member is added by an implicit conversion from JavaCharArrayReader to Ensuring[JavaCharArrayReader] performed by method any2Ensuring in scala.Predef.
    Definition Classes
      Ensuring

39. #### final def eq(arg0: AnyRef): Boolean

    Definition Classes
      AnyRef

40. #### def equals(arg0: Any): Boolean

    Definition Classes
      AnyRef → Any

41. #### def exists(p: (Char) ⇒ Boolean): Boolean

    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce

42. #### def filter(p: (Char) ⇒ Boolean): collection.Iterator[Char]

    Definition Classes
      Iterator

43. #### def filterNot(p: (Char) ⇒ Boolean): collection.Iterator[Char]

    Definition Classes
      Iterator

44. #### def finalize(): Unit

    Attributes
      protected[java.lang]
    Definition Classes
      AnyRef
    Annotations
      @throws( classOf[java.lang.Throwable] )

45. #### def find(p: (Char) ⇒ Boolean): Option[Char]

    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce

46. #### def flatMap[B](f: (Char) ⇒ GenTraversableOnce[B]): collection.Iterator[B]

    Definition Classes
      Iterator

47. #### def fold[A1 >: Char](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
      TraversableOnce → GenTraversableOnce

48. #### def foldLeft[B](z: B)(op: (B, Char) ⇒ B): B

    Definition Classes
      TraversableOnce → GenTraversableOnce

49. #### def foldRight[B](z: B)(op: (Char, B) ⇒ B): B

    Definition Classes
      TraversableOnce → GenTraversableOnce

50. #### def forall(p: (Char) ⇒ Boolean): Boolean

    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce

51. #### def foreach[U](f: (Char) ⇒ U): Unit

    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce

52. #### def formatted(fmtstr: String): String

    Implicit information
      This member is added by an implicit conversion from JavaCharArrayReader to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
      StringFormat
    Annotations
      @inline()

53. #### final def getClass(): Class[_]

    Definition Classes
      AnyRef → Any

54. #### def grouped[B >: Char](size: Int): GroupedIterator[B]

    Definition Classes
      Iterator

55. #### def hasDefiniteSize: Boolean

    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce

56. #### def hasNext: Boolean

    Definition Classes
      JavaCharArrayReader → Iterator

57. #### def hashCode(): Int

    Definition Classes
      AnyRef → Any

58. #### def indexOf[B >: Char](elem: B): Int

    Definition Classes
      Iterator

59. #### def indexWhere(p: (Char) ⇒ Boolean): Int

    Definition Classes
      Iterator

60. #### def isEmpty: Boolean

    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce

61. #### final def isInstanceOf[T0]: Boolean

    Definition Classes
      Any

62. #### def isTraversableAgain: Boolean

    Definition Classes
      Iterator → GenTraversableOnce

63. #### var isUnicode: Boolean

64. #### def last: Char

65. #### var lastBlankLinePos: Int

66. #### var lastLineStartPos: Int

67. #### def length: Int

    Definition Classes
      Iterator

68. #### var lineStartPos: Int

69. #### def map[B](f: (Char) ⇒ B): collection.Iterator[B]

    Definition Classes
      Iterator

70. #### def max[B >: Char](implicit cmp: Ordering[B]): Char

    Definition Classes
      TraversableOnce → GenTraversableOnce

71. #### def maxBy[B](f: (Char) ⇒ B)(implicit cmp: Ordering[B]): Char

    Definition Classes
      TraversableOnce → GenTraversableOnce

72. #### def min[B >: Char](implicit cmp: Ordering[B]): Char

    Definition Classes
      TraversableOnce → GenTraversableOnce

73. #### def minBy[B](f: (Char) ⇒ B)(implicit cmp: Ordering[B]): Char

    Definition Classes
      TraversableOnce → GenTraversableOnce

74. #### def mkString: String

    Definition Classes
      TraversableOnce → GenTraversableOnce

75. #### def mkString(sep: String): String

    Definition Classes
      TraversableOnce → GenTraversableOnce

76. #### def mkString(start: String, sep: String, end: String): String

    Definition Classes
      TraversableOnce → GenTraversableOnce

77. #### final def ne(arg0: AnyRef): Boolean

    Definition Classes
      AnyRef

78. #### def next(): Char

    Definition Classes
      JavaCharArrayReader → Iterator

79. #### def nonEmpty: Boolean

    Definition Classes
      TraversableOnce → GenTraversableOnce

80. #### final def notify(): Unit

    Definition Classes
      AnyRef

81. #### final def notifyAll(): Unit

    Definition Classes
      AnyRef

82. #### var oldBp: Int

83. #### var oldCh: Char

84. #### def padTo[A1 >: Char](len: Int, elem: A1): collection.Iterator[A1]

    Definition Classes
      Iterator

85. #### def partition(p: (Char) ⇒ Boolean): (collection.Iterator[Char], collection.Iterator[Char])

    Definition Classes
      Iterator

86. #### def patch[B >: Char](from: Int, patchElems: collection.Iterator[B], replaced: Int): collection.Iterator[B]

    Definition Classes
      Iterator

87. #### def product[B >: Char](implicit num: Numeric[B]): B

    Definition Classes
      TraversableOnce → GenTraversableOnce

88. #### def reduce[A1 >: Char](op: (A1, A1) ⇒ A1): A1

    Definition Classes
      TraversableOnce → GenTraversableOnce

89. #### def reduceLeft[B >: Char](op: (B, Char) ⇒ B): B

    Definition Classes
      TraversableOnce

90. #### def reduceLeftOption[B >: Char](op: (B, Char) ⇒ B): Option[B]

    Definition Classes
      TraversableOnce → GenTraversableOnce

91. #### def reduceOption[A1 >: Char](op: (A1, A1) ⇒ A1): Option[A1]

    Definition Classes
      TraversableOnce → GenTraversableOnce

92. #### def reduceRight[B >: Char](op: (Char, B) ⇒ B): B

    Definition Classes
      TraversableOnce → GenTraversableOnce

93. #### def reduceRightOption[B >: Char](op: (Char, B) ⇒ B): Option[B]

    Definition Classes
      TraversableOnce → GenTraversableOnce

94. #### def reversed: List[Char]

    Attributes
      protected[this]
    Definition Classes
      TraversableOnce

95. #### def rewind(): Unit

96. #### def sameElements(that: collection.Iterator[_]): Boolean

    Definition Classes
      Iterator

97. #### def scanLeft[B](z: B)(op: (B, Char) ⇒ B): collection.Iterator[B]

    Definition Classes
      Iterator

98. #### def scanRight[B](z: B)(op: (Char, B) ⇒ B): collection.Iterator[B]

    Definition Classes
      Iterator

99. #### def seq: collection.Iterator[Char]

    Definition Classes
      Iterator → TraversableOnce → GenTraversableOnce

100. #### def size: Int

     Definition Classes
       TraversableOnce → GenTraversableOnce

101. #### def slice(from: Int, until: Int): collection.Iterator[Char]

     Definition Classes
       Iterator

102. #### def sliding[B >: Char](size: Int, step: Int): GroupedIterator[B]

     Definition Classes
       Iterator

103. #### def span(p: (Char) ⇒ Boolean): (collection.Iterator[Char], collection.Iterator[Char])

     Definition Classes
       Iterator

104. #### def sum[B >: Char](implicit num: Numeric[B]): B

     Definition Classes
       TraversableOnce → GenTraversableOnce

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

     Definition Classes
       AnyRef

106. #### val tabinc: Int

     layout constant

107. #### def take(n: Int): collection.Iterator[Char]

     Definition Classes
       Iterator

108. #### def takeWhile(p: (Char) ⇒ Boolean): collection.Iterator[Char]

     Definition Classes
       Iterator

109. #### def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, Char, Col[Char]]): Col[Char]

     Definition Classes
       TraversableOnce → GenTraversableOnce

110. #### def toArray[B >: Char](implicit arg0: ClassTag[B]): Array[B]

     Definition Classes
       TraversableOnce → GenTraversableOnce

111. #### def toBuffer[B >: Char]: Buffer[B]

     Definition Classes
       TraversableOnce → GenTraversableOnce

112. #### def toIndexedSeq: collection.immutable.IndexedSeq[Char]

     Definition Classes
       TraversableOnce → GenTraversableOnce

113. #### def toIterable: collection.Iterable[Char]

     Definition Classes
       TraversableOnce → GenTraversableOnce

114. #### def toIterator: collection.Iterator[Char]

     Definition Classes
       Iterator → GenTraversableOnce

115. #### def toList: List[Char]

     Definition Classes
       TraversableOnce → GenTraversableOnce

116. #### def toMap[T, U](implicit ev: <:<[Char, (T, U)]): Map[T, U]

     Definition Classes
       TraversableOnce → GenTraversableOnce

117. #### def toSeq: collection.Seq[Char]

     Definition Classes
       TraversableOnce → GenTraversableOnce

118. #### def toSet[B >: Char]: collection.immutable.Set[B]

     Definition Classes
       TraversableOnce → GenTraversableOnce

119. #### def toStream: collection.immutable.Stream[Char]

     Definition Classes
       Iterator → GenTraversableOnce

120. #### def toString(): String

     Definition Classes
       Iterator → AnyRef → Any

121. #### def toTraversable: collection.Traversable[Char]

     Definition Classes
       Iterator → TraversableOnce → GenTraversableOnce

122. #### def toVector: Vector[Char]

     Definition Classes
       TraversableOnce → GenTraversableOnce

123. #### final def wait(): Unit

     Definition Classes
       AnyRef
     Annotations
       @throws( ... )

124. #### final def wait(arg0: Long, arg1: Int): Unit

     Definition Classes
       AnyRef
     Annotations
       @throws( ... )

125. #### final def wait(arg0: Long): Unit

     Definition Classes
       AnyRef
     Annotations
       @throws( ... )

126. #### def withFilter(p: (Char) ⇒ Boolean): collection.Iterator[Char]

     Definition Classes
       Iterator

127. #### def zip[B](that: collection.Iterator[B]): collection.Iterator[(Char, B)]

     Definition Classes
       Iterator

128. #### def zipAll[B, A1 >: Char, B1 >: B](that: collection.Iterator[B], thisElem: A1, thatElem: B1): collection.Iterator[(A1, B1)]

     Definition Classes
       Iterator

129. #### def zipWithIndex: collection.Iterator[(Char, Int)]

     Definition Classes
       Iterator

130. #### def →[B](y: B): (JavaCharArrayReader, B)

     Implicit information
       This member is added by an implicit conversion from JavaCharArrayReader to ArrowAssoc[JavaCharArrayReader] performed by method any2ArrowAssoc in scala.Predef.
     Definition Classes
       ArrowAssoc

### Shadowed Implicit Value Members

1. #### def filter(p: (Char) ⇒ Boolean): collection.TraversableOnce[Char]

   Implicit information
     This member is added by an implicit conversion from JavaCharArrayReader to MonadOps[Char] performed by method MonadOps in scala.collection.TraversableOnce.
   Shadowing
     This implicitly inherited member is shadowed by one or more members in this class.
     To access this member you can use a type ascription:

         (javaCharArrayReader: MonadOps[Char]).filter(p)

   Definition Classes
     MonadOps

2. #### def flatMap[B](f: (Char) ⇒ GenTraversableOnce[B]): collection.TraversableOnce[B]

   Implicit information
     This member is added by an implicit conversion from JavaCharArrayReader to MonadOps[Char] performed by method MonadOps in scala.collection.TraversableOnce.
   Shadowing
     This implicitly inherited member is shadowed by one or more members in this class.
     To access this member you can use a type ascription:

         (javaCharArrayReader: MonadOps[Char]).flatMap(f)

   Definition Classes
     MonadOps

3. #### def map[B](f: (Char) ⇒ B): collection.TraversableOnce[B]

   Implicit information
     This member is added by an implicit conversion from JavaCharArrayReader to MonadOps[Char] performed by method MonadOps in scala.collection.TraversableOnce.
   Shadowing
     This implicitly inherited member is shadowed by one or more members in this class.
     To access this member you can use a type ascription:

         (javaCharArrayReader: MonadOps[Char]).map(f)

   Definition Classes
     MonadOps

4. #### val self: Any

   Implicit information
     This member is added by an implicit conversion from JavaCharArrayReader to StringAdd performed by method any2stringadd in scala.Predef.
   Shadowing
     This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
     To access this member you can use a type ascription:

         (javaCharArrayReader: StringAdd).self

   Definition Classes
     StringAdd

5. #### val self: Any

   Implicit information
     This member is added by an implicit conversion from JavaCharArrayReader to StringFormat performed by method any2stringfmt in scala.Predef.
   Shadowing
     This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
     To access this member you can use a type ascription:

         (javaCharArrayReader: StringFormat).self

   Definition Classes
     StringFormat

6. #### def withFilter(p: (Char) ⇒ Boolean): collection.Iterator[Char]

   Implicit information
     This member is added by an implicit conversion from JavaCharArrayReader to MonadOps[Char] performed by method MonadOps in scala.collection.TraversableOnce.
   Shadowing
     This implicitly inherited member is shadowed by one or more members in this class.
     To access this member you can use a type ascription:

         (javaCharArrayReader: MonadOps[Char]).withFilter(p)

   Definition Classes
     MonadOps

### Deprecated Value Members

1. #### def /:\[A1 >: Char](z: A1)(op: (A1, A1) ⇒ A1): A1

   Definition Classes
     GenTraversableOnce
   Annotations
     @deprecated
   Deprecated

     (Since version 2.10.0) use fold instead

2. #### def x: JavaCharArrayReader

   Implicit information
     This member is added by an implicit conversion from JavaCharArrayReader to ArrowAssoc[JavaCharArrayReader] performed by method any2ArrowAssoc in scala.Predef.
   Shadowing
     This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
     To access this member you can use a type ascription:

         (javaCharArrayReader: ArrowAssoc[JavaCharArrayReader]).x

   Definition Classes
     ArrowAssoc
   Annotations
     @deprecated
   Deprecated

     (Since version 2.10.0) Use `leftOfArrow`instead``

3. #### def x: JavaCharArrayReader

   Implicit information
     This member is added by an implicit conversion from JavaCharArrayReader to Ensuring[JavaCharArrayReader] performed by method any2Ensuring in scala.Predef.
   Shadowing
     This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
     To access this member you can use a type ascription:

         (javaCharArrayReader: Ensuring[JavaCharArrayReader]).x

   Definition Classes
     Ensuring
   Annotations
     @deprecated
   Deprecated

     (Since version 2.10.0) Use `resultOfEnsuring`instead``

### Inherited from Cloneable

### Inherited from java.lang.Cloneable

### Inherited from collection.Iterator[Char]

### Inherited from collection.TraversableOnce[Char]

### Inherited from GenTraversableOnce[Char]

### Inherited from AnyRef

### Inherited from Any

### Inherited by implicit conversion MonadOps from JavaCharArrayReader to MonadOps[Char]

### Inherited by implicit conversion any2stringadd from JavaCharArrayReader to StringAdd

### Inherited by implicit conversion any2stringfmt from JavaCharArrayReader to StringFormat

### Inherited by implicit conversion any2ArrowAssoc from JavaCharArrayReader to ArrowAssoc[JavaCharArrayReader]

### Inherited by implicit conversion any2Ensuring from JavaCharArrayReader to Ensuring[JavaCharArrayReader]

### Inherited by implicit conversion alternateImplicit from JavaCharArrayReader to ForceImplicitAmbiguity

### Ungrouped