fi.pelam.csv.stream

CsvReaderInternal

object CsvReaderInternal

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

Type Members

  1. type CellOrError = Either[CsvReaderError, StringCell]

    The type of of output of this class.

    The type of of output of this class.

    Errors are separated by using Scala's Either type.

  2. sealed abstract class State extends AnyRef

    Base class for the finite state machine states used in the parser.

Value Members

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

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Definition Classes
    AnyRef → Any
  4. object CarriageReturn extends State with Product with Serializable

    This is a state for handling CR LF style line termination.

  5. object CellContent extends State with Product with Serializable

    Parsing a position inside a cell and collecting data to emit the corresponding fi.pelam.csv.cell.StringCell object.

    Parsing a position inside a cell and collecting data to emit the corresponding fi.pelam.csv.cell.StringCell object.

    From this state the state machine transitions to QuotedCellContent, LineEnd or CellEnd.

  6. object CellEnd extends State with Product with Serializable

    Cell content is ready.

    Cell content is ready. Emit the fi.pelam.csv.cell.StringCell object.

  7. object CellStart extends State with Product with Serializable

    Zero width initial state for each cell from where we go to CellContent

    Zero width initial state for each cell from where we go to CellContent

    Used to handle case where final line ends without termination.

  8. object ErrorState extends State with Product with Serializable

    Parser won't continue after encountering first error.

    Parser won't continue after encountering first error.

    Subsequent calls to read will produce None.

    Parser will then remain in this state.

  9. object LineEnd extends State with Product with Serializable

    A state signaling that current line has ended.

  10. object PossibleEndQuote extends State with Product with Serializable

    State machine transitions to this state from state QuotedCellContent when the quote character is encountered.

    State machine transitions to this state from state QuotedCellContent when the quote character is encountered. If it is just a lone quote, the quoted section ends.

    However, two quote characters together are interpreted as an escaped quote character. At least Excel and Google Docs seem to adhere to this convention.

    This state exists to allow separating these two cases.

  11. object QuotedCellContent extends State with Product with Serializable

    Parsing a position inside a cell and collecting data to emit the corresponding fi.pelam.csv.cell.StringCell object.

    Parsing a position inside a cell and collecting data to emit the corresponding fi.pelam.csv.cell.StringCell object.

    The difference to ordinary CellContent state is that a quote has been encountered.

    A cell may contain multiple quoted sections, although usually the whole cell content is quoted or none.

  12. object StreamEnd extends State with Product with Serializable

    Final state that signals that input stream has been exhausted and no more cells will be emitted.

    Final state that signals that input stream has been exhausted and no more cells will be emitted.

    Subsequent calls to read will produce None.

  13. object StreamStart extends State with Product with Serializable

    A "Zero width" initial state of the state machine.

    A "Zero width" initial state of the state machine.

    If input ends while in this state, zero cells will be emitted.

  14. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  15. def clone(): AnyRef

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

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

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

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

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

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

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

    Definition Classes
    AnyRef
  26. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped