scalax.io.OutputConverter

Buffer

class Buffer [T] extends Iterator[Byte]

Wraps a ByteBuffer to provide access to a ByteBuffer's built-in conversion methods like putShort.

This class is to support implementing custom converters

T

the type of object this Buffer will convert

Linear Supertypes
Iterator[Byte], TraversableOnce[Byte], GenTraversableOnce[Byte], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Buffer
  2. Iterator
  3. TraversableOnce
  4. GenTraversableOnce
  5. AnyRef
  6. Any
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Buffer (size: Int, op: (ByteBuffer, T) ⇒ Unit)

    size

    the size of the buffer to use. Typically this is the size of one T converted to bytes

    op

    a function that writes T to the ByteBuffer that is passed in.

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 ++ [B >: Byte] (that: ⇒ GenTraversableOnce[B]): Iterator[B]

    Definition Classes
    Iterator
  5. def /: [B] (z: B)(op: (B, Byte) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  6. def /:\ [A1 >: Byte] (z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    GenTraversableOnce
  7. def :\ [B] (z: B)(op: (Byte, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  8. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  10. def addString (b: StringBuilder): StringBuilder

    Definition Classes
    TraversableOnce
  11. def addString (b: StringBuilder, sep: String): StringBuilder

    Definition Classes
    TraversableOnce
  12. def addString (b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Definition Classes
    TraversableOnce
  13. def aggregate [B] (z: B)(seqop: (B, Byte) ⇒ B, combop: (B, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  14. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  15. def buffered : BufferedIterator[Byte]

    Definition Classes
    Iterator
  16. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  17. def collect [B] (pf: PartialFunction[Byte, B]): Iterator[B]

    Definition Classes
    Iterator
    Annotations
    @migration
    Migration

  18. def collectFirst [B] (pf: PartialFunction[Byte, B]): Option[B]

    Definition Classes
    TraversableOnce
  19. def contains (elem: Any): Boolean

    Definition Classes
    Iterator
  20. val converter : ByteBuffer

  21. def copyToArray [B >: Byte] (xs: Array[B], start: Int, len: Int): Unit

    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  22. def copyToArray [B >: Byte] (xs: Array[B]): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  23. def copyToArray [B >: Byte] (xs: Array[B], start: Int): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  24. def copyToBuffer [B >: Byte] (dest: Buffer[B]): Unit

    Definition Classes
    TraversableOnce
  25. def count (p: (Byte) ⇒ Boolean): Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  26. def drop (n: Int): Iterator[Byte]

    Definition Classes
    Iterator
  27. def dropWhile (p: (Byte) ⇒ Boolean): Iterator[Byte]

    Definition Classes
    Iterator
  28. def duplicate : (Iterator[Byte], Iterator[Byte])

    Definition Classes
    Iterator
  29. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  30. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  31. def exists (p: (Byte) ⇒ Boolean): Boolean

    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  32. def filter (p: (Byte) ⇒ Boolean): Iterator[Byte]

    Definition Classes
    Iterator
  33. def filterNot (p: (Byte) ⇒ Boolean): Iterator[Byte]

    Definition Classes
    Iterator
  34. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  35. def find (p: (Byte) ⇒ Boolean): Option[Byte]

    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  36. def flatMap [B] (f: (Byte) ⇒ GenTraversableOnce[B]): Iterator[B]

    Definition Classes
    Iterator
  37. def fold [A1 >: Byte] (z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  38. def foldLeft [B] (z: B)(op: (B, Byte) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  39. def foldRight [B] (z: B)(op: (Byte, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  40. def forall (p: (Byte) ⇒ Boolean): Boolean

    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  41. def foreach [U] (f: (Byte) ⇒ U): Unit

    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  42. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  43. def grouped [B >: Byte] (size: Int): GroupedIterator[B]

    Definition Classes
    Iterator
  44. def hasDefiniteSize : Boolean

    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  45. def hasNext : Boolean

    Definition Classes
    Buffer → Iterator
  46. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  47. var i : Int

  48. def indexOf [B >: Byte] (elem: B): Int

    Definition Classes
    Iterator
  49. def indexWhere (p: (Byte) ⇒ Boolean): Int

    Definition Classes
    Iterator
  50. def isEmpty : Boolean

    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  51. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  52. def isTraversableAgain : Boolean

    Definition Classes
    Iterator → GenTraversableOnce
  53. def length : Int

    Definition Classes
    Iterator
  54. def map [B] (f: (Byte) ⇒ B): Iterator[B]

    Definition Classes
    Iterator
  55. def max [B >: Byte] (implicit cmp: Ordering[B]): Byte

    Definition Classes
    TraversableOnce → GenTraversableOnce
  56. def maxBy [B] (f: (Byte) ⇒ B)(implicit cmp: Ordering[B]): Byte

    Definition Classes
    TraversableOnce → GenTraversableOnce
  57. def min [B >: Byte] (implicit cmp: Ordering[B]): Byte

    Definition Classes
    TraversableOnce → GenTraversableOnce
  58. def minBy [B] (f: (Byte) ⇒ B)(implicit cmp: Ordering[B]): Byte

    Definition Classes
    TraversableOnce → GenTraversableOnce
  59. def mkString : String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  60. def mkString (sep: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  61. def mkString (start: String, sep: String, end: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  62. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  63. def next (): Byte

    Definition Classes
    Buffer → Iterator
  64. def nonEmpty : Boolean

    Definition Classes
    TraversableOnce → GenTraversableOnce
  65. def notify (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef
  67. def padTo [A1 >: Byte] (len: Int, elem: A1): Iterator[A1]

    Definition Classes
    Iterator
  68. def partition (p: (Byte) ⇒ Boolean): (Iterator[Byte], Iterator[Byte])

    Definition Classes
    Iterator
  69. def patch [B >: Byte] (from: Int, patchElems: Iterator[B], replaced: Int): Iterator[B]

    Definition Classes
    Iterator
  70. def product [B >: Byte] (implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  71. def put (value: T): Buffer[T]

    Call to convert the data and place in the buffer

    Call to convert the data and place in the buffer

    value

    the data to convert

    returns

    the Buffer with the converted data

  72. def reduce [A1 >: Byte] (op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  73. def reduceLeft [B >: Byte] (op: (B, Byte) ⇒ B): B

    Definition Classes
    TraversableOnce
  74. def reduceLeftOption [B >: Byte] (op: (B, Byte) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  75. def reduceOption [A1 >: Byte] (op: (A1, A1) ⇒ A1): Option[A1]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  76. def reduceRight [B >: Byte] (op: (Byte, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  77. def reduceRightOption [B >: Byte] (op: (Byte, B) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  78. def reversed : List[Byte]

    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  79. def sameElements (that: Iterator[_]): Boolean

    Definition Classes
    Iterator
  80. def scanLeft [B] (z: B)(op: (B, Byte) ⇒ B): Iterator[B]

    Definition Classes
    Iterator
  81. def scanRight [B] (z: B)(op: (Byte, B) ⇒ B): Iterator[B]

    Definition Classes
    Iterator
  82. def seq : Iterator[Byte]

    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  83. def slice (from: Int, until: Int): Iterator[Byte]

    Definition Classes
    Iterator
  84. def sliding [B >: Byte] (size: Int, step: Int): GroupedIterator[B]

    Definition Classes
    Iterator
  85. def span (p: (Byte) ⇒ Boolean): (Iterator[Byte], Iterator[Byte])

    Definition Classes
    Iterator
  86. def sum [B >: Byte] (implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  87. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  88. def take (n: Int): Iterator[Byte]

    Definition Classes
    Iterator
  89. def takeWhile (p: (Byte) ⇒ Boolean): Iterator[Byte]

    Definition Classes
    Iterator
  90. def toArray [B >: Byte] (implicit arg0: ClassManifest[B]): Array[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  91. def toBuffer [B >: Byte] : Buffer[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  92. def toIndexedSeq [B >: Byte] : IndexedSeq[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  93. def toIterable : Iterable[Byte]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  94. def toIterator : Iterator[Byte]

    Definition Classes
    Iterator → GenTraversableOnce
  95. def toList : List[Byte]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  96. def toMap [T, U] (implicit ev: <:<[Byte, (T, U)]): Map[T, U]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  97. def toSeq : Seq[Byte]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  98. def toSet [B >: Byte] : Set[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  99. def toStream : Stream[Byte]

    Definition Classes
    Iterator → GenTraversableOnce
  100. def toString (): String

    Definition Classes
    Iterator → AnyRef → Any
  101. def toTraversable : Traversable[Byte]

    Definition Classes
    Iterator → TraversableOnce → GenTraversableOnce
  102. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  105. def withFilter (p: (Byte) ⇒ Boolean): Iterator[Byte]

    Definition Classes
    Iterator
  106. def zip [B] (that: Iterator[B]): Iterator[(Byte, B)]

    Definition Classes
    Iterator
  107. def zipAll [B, A1 >: Byte, B1 >: B] (that: Iterator[B], thisElem: A1, thatElem: B1): Iterator[(A1, B1)]

    Definition Classes
    Iterator
  108. def zipWithIndex : Iterator[(Byte, Int)] { ... /* 2 definitions in type refinement */ }

    Definition Classes
    Iterator

Deprecated Value Members

  1. def append [B >: Byte] (that: Iterator[B]): Iterator[B]

    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    use ++

  2. def counted : CountedIterator[Byte]

    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    use zipWithIndex in Iterator

  3. def findIndexOf (p: (Byte) ⇒ Boolean): Int

    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    use indexWhere instead

  4. def readInto [B >: Byte] (xs: Array[B]): Unit

    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    use copyToArray instead

  5. def readInto [B >: Byte] (xs: Array[B], start: Int): Unit

    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    use copyToArray instead

  6. def readInto [B >: Byte] (xs: Array[B], start: Int, sz: Int): Unit

    Definition Classes
    Iterator
    Annotations
    @deprecated
    Deprecated

    use copyToArray instead

Inherited from Iterator[Byte]

Inherited from TraversableOnce[Byte]

Inherited from GenTraversableOnce[Byte]

Inherited from AnyRef

Inherited from Any