field.kit.util.file

CSVFile

class CSVFile extends CSVFormat with FileWriter with Iterable[ArrayBuffer[String]]

Go to: companion

Inherits

  1. Iterable
  2. IterableLike
  3. Equals
  4. Traversable
  5. GenericTraversableTemplate
  6. TraversableLike
  7. HasNewBuilder
  8. FileWriter
  9. CSVFormat
  10. FileFormat
  11. AnyRef
  12. Any

Value Members

  1. def ++[B >: ArrayBuffer[String], That](that: Iterator[B])(bf: CanBuildFrom[Iterable[ArrayBuffer[String]], B, That]): That

  2. def ++[B >: ArrayBuffer[String], That](that: Traversable[B])(bf: CanBuildFrom[Iterable[ArrayBuffer[String]], B, That]): That

  3. def +=(line: String): ArrayBuffer[ArrayBuffer[String]]

  4. def /:[B](z: B)(op: (B, ArrayBuffer[String]) ⇒ B): B

  5. def :\[B](z: B)(op: (ArrayBuffer[String], B) ⇒ B): B

  6. def addString(b: StringBuilder): StringBuilder

  7. def addString(b: StringBuilder, sep: String): StringBuilder

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

  9. def apply(n: String): String

    returns an entry using the name of a header column

    returns an entry using the name of a header column

    Go to: companion
  10. def apply(i: Int): String

    returns an entry from the current row

    returns an entry from the current row

    Go to: companion
  11. def canEqual(that: Any): Boolean

  12. def columns: Int

  13. def companion: GenericCompanion[Iterable[A][A]]

  14. def copyToArray[B >: ArrayBuffer[String]](xs: Array[B], start: Int, len: Int): Unit

  15. def copyToArray[B >: ArrayBuffer[String]](xs: Array[B]): Unit

  16. def copyToArray[B >: ArrayBuffer[String]](xs: Array[B], start: Int): Unit

  17. def copyToBuffer[B >: ArrayBuffer[String]](dest: Buffer[B]): Unit

  18. def count(p: (ArrayBuffer[String]) ⇒ Boolean): Int

  19. def drop(n: Int): Iterable[ArrayBuffer[String]]

  20. def dropRight(n: Int): Iterable[ArrayBuffer[String]]

  21. def dropWhile(p: (ArrayBuffer[String]) ⇒ Boolean): Iterable[ArrayBuffer[String]]

  22. def elements: Iterator[ArrayBuffer[String]]

  23. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an equivalence relation:

    • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
    • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
    • It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef ⇐ Any
    Go to: companion
  24. def exists(p: (ArrayBuffer[String]) ⇒ Boolean): Boolean

  25. def filter(p: (ArrayBuffer[String]) ⇒ Boolean): Iterable[ArrayBuffer[String]]

  26. def filterNot(p: (ArrayBuffer[String]) ⇒ Boolean): Iterable[ArrayBuffer[String]]

  27. def find(p: (ArrayBuffer[String]) ⇒ Boolean): Option[ArrayBuffer[String]]

  28. def first: ArrayBuffer[String]

  29. def firstOption: Option[ArrayBuffer[String]]

  30. def flatMap[B, That](f: (ArrayBuffer[String]) ⇒ Traversable[B])(bf: CanBuildFrom[Iterable[ArrayBuffer[String]], B, That]): That

  31. def flatten[B](asTraversable: (ArrayBuffer[String]) ⇒ Traversable[B]): Iterable[B]

  32. def foldLeft[B](z: B)(op: (B, ArrayBuffer[String]) ⇒ B): B

  33. def foldRight[B](z: B)(op: (ArrayBuffer[String], B) ⇒ B): B

  34. def forall(p: (ArrayBuffer[String]) ⇒ Boolean): Boolean

  35. def foreach[U](f: (ArrayBuffer[String]) ⇒ U): Unit

  36. def genericBuilder[B]: Builder[B, Iterable[B]]

  37. def groupBy[K](f: (ArrayBuffer[String]) ⇒ K): Map[K, Iterable[ArrayBuffer[String]]]

  38. def grouped(size: Int): Iterator[Iterable[ArrayBuffer[String]]]

  39. def hasDefiniteSize: Boolean

  40. def hashCode(): Int

    Returns a hash code value for the object

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    definition classes: AnyRef ⇐ Any
    Go to: companion
  41. def head: ArrayBuffer[String]

  42. def headOption: Option[ArrayBuffer[String]]

  43. var headers: ArrayBuffer[String]

  44. def init: Iterable[ArrayBuffer[String]]

  45. def isEmpty: Boolean

  46. def iterator: Iterator[ArrayBuffer[String]]

  47. def last: ArrayBuffer[String]

  48. def lastOption: Option[ArrayBuffer[String]]

  49. def map[B, That](f: (ArrayBuffer[String]) ⇒ B)(bf: CanBuildFrom[Iterable[ArrayBuffer[String]], B, That]): That

  50. def max[B >: ArrayBuffer[String]](cmp: Ordering[B]): ArrayBuffer[String]

  51. def min[B >: ArrayBuffer[String]](cmp: Ordering[B]): ArrayBuffer[String]

  52. def mkString: String

  53. def mkString(sep: String): String

  54. def mkString(start: String, sep: String, end: String): String

  55. def nonEmpty: Boolean

  56. def partialMap[B, That](pf: PartialFunction[ArrayBuffer[String], B])(bf: CanBuildFrom[Iterable[ArrayBuffer[String]], B, That]): That

  57. def partition(p: (ArrayBuffer[String]) ⇒ Boolean): (Iterable[ArrayBuffer[String]], Iterable[ArrayBuffer[String]])

  58. def product[B >: ArrayBuffer[String]](num: Numeric[B]): B

  59. def projection: IterableView[ArrayBuffer[String], Iterable[ArrayBuffer[String]]]

  60. def reduceLeft[B >: ArrayBuffer[String]](op: (B, ArrayBuffer[String]) ⇒ B): B

  61. def reduceLeftOption[B >: ArrayBuffer[String]](op: (B, ArrayBuffer[String]) ⇒ B): Option[B]

  62. def reduceRight[B >: ArrayBuffer[String]](op: (ArrayBuffer[String], B) ⇒ B): B

  63. def reduceRightOption[B >: ArrayBuffer[String]](op: (ArrayBuffer[String], B) ⇒ B): Option[B]

  64. def repr: Iterable[ArrayBuffer[String]]

  65. var rows: ArrayBuffer[ArrayBuffer[String]]

  66. def sameElements[B >: ArrayBuffer[String]](that: Iterable[B]): Boolean

  67. def size: Int

  68. def slice(from: Int, until: Int): Iterable[ArrayBuffer[String]]

  69. def sliding[B >: ArrayBuffer[String]](size: Int, step: Int): Iterator[Iterable[ArrayBuffer[String]]]

  70. def sliding[B >: ArrayBuffer[String]](size: Int): Iterator[Iterable[ArrayBuffer[String]]]

  71. var source: File

    reference to the original source file (only set when loaded from the disk)

    reference to the original source file (only set when loaded from the disk)

    definition classes: FileFormat
    Go to: companion
  72. def span(p: (ArrayBuffer[String]) ⇒ Boolean): (Iterable[ArrayBuffer[String]], Iterable[ArrayBuffer[String]])

  73. def splitAt(n: Int): (Iterable[ArrayBuffer[String]], Iterable[ArrayBuffer[String]])

  74. def stringPrefix: String

  75. var suffix: String

  76. def sum[B >: ArrayBuffer[String]](num: Numeric[B]): B

  77. def tail: Iterable[ArrayBuffer[String]]

  78. def take(n: Int): Iterable[ArrayBuffer[String]]

  79. def takeRight(n: Int): Iterable[ArrayBuffer[String]]

  80. def takeWhile(p: (ArrayBuffer[String]) ⇒ Boolean): Iterable[ArrayBuffer[String]]

  81. def toArray[B >: ArrayBuffer[String]](arg0: ClassManifest[B]): Array[B]

  82. def toIndexedSeq[B >: ArrayBuffer[String]]: IndexedSeq[B]

  83. def toIterable: Iterable[ArrayBuffer[String]]

  84. def toList: List[ArrayBuffer[String]]

  85. def toMap[T, U](ev: <:<[ArrayBuffer[String], (T, U)]): Map[T, U]

  86. def toSeq: Seq[ArrayBuffer[String]]

  87. def toSet[B >: ArrayBuffer[String]]: Set[B]

  88. def toStream: Stream[ArrayBuffer[String]]

  89. def toString(): String

    Returns a string representation of the object

    Returns a string representation of the object.

    The default representation is platform dependent.

    definition classes: TraversableLike ⇐ AnyRef ⇐ Any
    Go to: companion
  90. def transpose[B](asTraversable: (ArrayBuffer[String]) ⇒ Traversable[B]): Iterable[Iterable[B]]

  91. def unzip[A1, A2](asPair: (ArrayBuffer[String]) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])

  92. def view(from: Int, until: Int): IterableView[ArrayBuffer[String], Iterable[ArrayBuffer[String]]]

  93. def view: IterableView[ArrayBuffer[String], Iterable[ArrayBuffer[String]]]

  94. def withFilter(p: (ArrayBuffer[String]) ⇒ Boolean): WithFilter

  95. def write(file: File): Unit

  96. def zip[A1 >: ArrayBuffer[String], B, That](that: Iterable[B])(bf: CanBuildFrom[Iterable[ArrayBuffer[String]], (A1, B), That]): That

  97. def zipAll[B, A1 >: ArrayBuffer[String], That](that: Iterable[B], thisElem: A1, thatElem: B)(bf: CanBuildFrom[Iterable[ArrayBuffer[String]], (A1, B), That]): That

  98. def zipWithIndex[A1 >: ArrayBuffer[String], That](bf: CanBuildFrom[Iterable[ArrayBuffer[String]], (A1, Int), That]): That

Instance constructors

  1. new CSVFile()

  2. new CSVFile(suffix: String)