Class

org.apache.daffodil.processors.dfa

TextDelimitedUnparser

Related Doc: package dfa

Permalink

class TextDelimitedUnparser extends DelimitedUnparser

When 'escapeCharacter': On unparsing a single character of the data is escaped by adding an dfdl:escapeCharacter before it. The following are escaped if they are in the data:

- Any in-scope terminating delimiter by escaping its first character. - dfdl:escapeCharacter (escaped by dfdl:escapeEscapeCharacter) - Any dfdl:extraEscapedCharacters

When 'escapeBlock': On unparsing the entire data are escaped by adding dfdl:escapeBlockStart to the beginning and dfdl:escapeBlockEnd to the end of the data. The data is either always escaped or escaped when needed as specified by dfdl:generateEscapeBlock. If the data is escaped and contains the dfdl:escapeBlockEnd then first character of each appearance of the dfdl:escapeBlockEnd is escaped by the dfdl:escapeEscapeCharacter.

Linear Supertypes
DelimitedUnparser, Unparser, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TextDelimitedUnparser
  2. DelimitedUnparser
  3. Unparser
  4. Serializable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TextDelimitedUnparser(context: TermRuntimeData)

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. val context: TermRuntimeData

    Permalink
    Definition Classes
    TextDelimitedUnparserUnparser
  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def escape(input: DataInputStream, field: DFAField, delims: Array[DFADelimiter], blockEndDFA: DFADelimiter, escapeEscapeChar: MaybeChar, blockStart: String, blockEnd: String, generateEscapeBlock: Boolean, state: UState): (String, Boolean)

    Permalink
  10. final def escapeBlock(input: DataInputStream, field: DFAField, delims: Array[DFADelimiter], blockEnd: DFADelimiter, escapeEscapeChar: MaybeChar, state: UState): (String, Boolean)

    Permalink

    Performs escaping for escapeSchemeKind Block for unparsing.

  11. def escapeCharacter(input: DataInputStream, field: DFAField, delims: Array[DFADelimiter], hasEscCharAsDelimiter: Boolean, escapeChar: Char, escapeEscapeChar: MaybeChar, state: UState): (String, Boolean)

    Permalink

    Performs escaping appropriate when escapeSchemeKind is Character for unparsing.

  12. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. lazy val info: String

    Permalink
    Definition Classes
    TextDelimitedUnparserUnparser
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def longestMatch(matches: ArrayBuffer[(DFADelimiter, Registers)]): Maybe[(DFADelimiter, Registers)]

    Permalink

    This function takes in a list of matches (in an ArrayBuffer for constant append and random access) and returns the match that starts earliest in the data.

    This function takes in a list of matches (in an ArrayBuffer for constant append and random access) and returns the match that starts earliest in the data. If multiple matches start at the same point in the data, the match with the longer delimiter length is used as a tie breaker

    Attributes
    protected
    Definition Classes
    DelimitedUnparser
  18. lazy val name: String

    Permalink
    Definition Classes
    TextDelimitedUnparserUnparser
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  23. def toString(): String

    Permalink
    Definition Classes
    Unparser → AnyRef → Any
  24. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from DelimitedUnparser

Inherited from Unparser

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped