Packages

c

org.apache.daffodil.processors.unparsers

StringMaybeTruncateCharactersUnparser

class StringMaybeTruncateCharactersUnparser extends StringSpecifiedLengthUnparserTruncateBase

Truncates strings to the right length measured in characters.

LengthUnits is 'characters', but we still don't know what encoding so whether it is fixed or variable width.

What's interesting is that we don't care whether the encoding is fixed or variable width in this case.

This is more efficient for variable-width encodings than lengthUnits 'bytes' (or bits), because we don't need a pass to measure the number of bits.

So, for utf-8, we should recommend lengthUnits 'characters' ? Maybe so.

Linear Supertypes
StringSpecifiedLengthUnparserTruncateBase, StringSpecifiedLengthUnparserBase, TextPrimUnparser, TextProcessor, PrimUnparser, PrimProcessor, Unparser, Processor, Serializable, Serializable, ToBriefXMLImpl, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StringMaybeTruncateCharactersUnparser
  2. StringSpecifiedLengthUnparserTruncateBase
  3. StringSpecifiedLengthUnparserBase
  4. TextPrimUnparser
  5. TextProcessor
  6. PrimUnparser
  7. PrimProcessor
  8. Unparser
  9. Processor
  10. Serializable
  11. Serializable
  12. ToBriefXMLImpl
  13. AnyRef
  14. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new StringMaybeTruncateCharactersUnparser(lengthInCharactersEv: LengthEv, stringTruncationType: Type, erd: ElementRuntimeData)

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. def UE(ustate: UState, s: String, args: Any*): Nothing
    Definition Classes
    Unparser
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def briefXMLAttributes: String
    Attributes
    protected
    Definition Classes
    ToBriefXMLImpl
  7. def childProcessors: Vector[Processor]
    Definition Classes
    PrimProcessor → Processor → ToBriefXMLImpl
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. def contentString(state: UState): String

    override in nil specified length unparsers

    override in nil specified length unparsers

    Attributes
    protected
    Definition Classes
    StringSpecifiedLengthUnparserBase
  10. def context: ElementRuntimeData
    Definition Classes
    StringSpecifiedLengthUnparserBase → Unparser → Processor
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. val erd: ElementRuntimeData
  14. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def isEmpty: Boolean
    Definition Classes
    Unparser → Processor
  18. val isInitialized: Boolean
    Definition Classes
    Processor
  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def isPrimitive: Boolean
    Definition Classes
    PrimProcessor → Processor
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. def nom: String
    Definition Classes
    ToBriefXMLImpl
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. lazy val runtimeDependencies: Vector[LengthEv]
    Definition Classes
    StringMaybeTruncateCharactersUnparser → Processor
  26. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  27. def toBriefXML(depthLimit: Int): String
    Definition Classes
    ToBriefXMLImpl
  28. def toString(): String
    Definition Classes
    ToBriefXMLImpl → AnyRef → Any
  29. final def truncateByJustification(ustate: UState, str: String, nChars: Long): String

    We only truncate strings, and only if textStringJustification is left or right, and only if truncateSpecifiedLengthString is yes.

    We only truncate strings, and only if textStringJustification is left or right, and only if truncateSpecifiedLengthString is yes.

    Attributes
    protected
    Definition Classes
    StringSpecifiedLengthUnparserTruncateBase
  30. def unparse(state: UState): Unit
    Definition Classes
    StringMaybeTruncateCharactersUnparser → Unparser
  31. final def unparse1(ustate: UState, ignore: AnyRef): Unit
    Definition Classes
    Unparser
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from TextPrimUnparser

Inherited from TextProcessor

Inherited from PrimUnparser

Inherited from PrimProcessor

Inherited from Unparser

Inherited from Processor

Inherited from Serializable

Inherited from Serializable

Inherited from ToBriefXMLImpl

Inherited from AnyRef

Inherited from Any

Ungrouped