com.rojoma.json.util

WrappedCharArray

class WrappedCharArray extends AnyRef

A container for a slice of an Array[Char] which promises to allow only read-only access to that array. Note it does not itself copy the array, so if there is another reference the data can be mutated by other operations. This is used for copyless lexing of data contained in Strings.

Attributes
final
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. WrappedCharArray
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Value Members

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

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

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

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

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

    Attributes
    final
    Definition Classes
    Any
  6. def apply (i: Int): Char

  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  10. def equals (o: Any): Boolean

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  13. def hashCode (): Int

    Definition Classes
    WrappedCharArray → AnyRef → Any
  14. def isEmpty : Boolean

  15. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  16. def iterator : WrappedCharArrayIterator

    Returns a BufferedIterator with two extra methods: remaining, which returns the number of characters left to consume, and "freeze".

    Returns a BufferedIterator with two extra methods: remaining, which returns the number of characters left to consume, and "freeze". which produces a WrappedCharArray containing the remaining characters without copying.

  17. def length : Int

  18. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  19. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  20. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  21. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  22. def toCharArray : Array[Char]

    returns

    a copy of the slice of the underlying array.

  23. def toCharBuffer : CharBuffer

    Convert this WrappedCharArray into a CharBuffer.

    Convert this WrappedCharArray into a CharBuffer. If the data originally came from a String or read-only CharBuffer, the result will be read-only. In neither case is the data copied.

    returns

    The underlying array-slice as a CharBuffer.

  24. def toString (): String

    returns

    The underlying array-slice as a String. If the data was originally from a String and WrappedCharArray.canConvertBackToStringWithoutCopying is true, this will not involve a copy.

    Definition Classes
    WrappedCharArray → AnyRef → Any
  25. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any