Class

org.apache.daffodil.processors.unparsers

StringMaybeTruncateCharactersUnparser

Related Doc: package unparsers

Permalink

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, Logging, Identity, 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. Logging
  13. Identity
  14. ToBriefXMLImpl
  15. AnyRef
  16. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

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

    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. def UE(ustate: UState, s: String, args: Any*): Nothing

    Permalink
    Definition Classes
    Unparser
  5. final def areLogging(lvl: Type): Boolean

    Permalink
    Definition Classes
    Logging
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def briefXMLAttributes: String

    Permalink
    Attributes
    protected
    Definition Classes
    ToBriefXMLImpl
  8. def childProcessors: Vector[Processor]

    Permalink
    Definition Classes
    PrimProcessor → Processor → ToBriefXMLImpl
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def contentString(state: UState): String

    Permalink

    override in nil specified length unparsers

    override in nil specified length unparsers

    Attributes
    protected
    Definition Classes
    StringSpecifiedLengthUnparserBase
  11. def context: ElementRuntimeData

    Permalink
    Definition Classes
    StringSpecifiedLengthUnparserBase → Unparser → Processor
  12. def doLogging(lvl: Type, msg: String, args: Seq[Any]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  13. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. val erd: ElementRuntimeData

    Permalink
  16. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  18. def getLogWriter(): LogWriter

    Permalink
    Definition Classes
    Logging
  19. final def getLoggingLevel(): Type

    Permalink
    Definition Classes
    Logging
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. def isEmpty: Boolean

    Permalink
    Definition Classes
    Unparser → Processor
  22. var isInitialized: Boolean

    Permalink
    Definition Classes
    Processor
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def isPrimitive: Boolean

    Permalink
    Definition Classes
    PrimProcessor → Processor
  25. final macro def log(lvl: Type, msg: String, args: Any*): Unit

    Permalink
    Definition Classes
    Logging
  26. lazy val logID: String

    Permalink
    Definition Classes
    Logging → Identity
  27. var logLevel: Maybe[Type]

    Permalink
    Definition Classes
    Logging
  28. var logWriter: Maybe[LogWriter]

    Permalink
    Definition Classes
    Logging
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. def nom: String

    Permalink
    Definition Classes
    ToBriefXMLImpl
  31. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  33. lazy val runtimeDependencies: Vector[LengthEv]

    Permalink
    Definition Classes
    StringMaybeTruncateCharactersUnparser → Processor
  34. def setLogWriter(lw: LogWriter): Unit

    Permalink
    Definition Classes
    Logging
  35. def setLoggingLevel(level: Type): Unit

    Permalink
    Definition Classes
    Logging
  36. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  37. def toBriefXML(depthLimit: Int): String

    Permalink
    Definition Classes
    ToBriefXMLImpl
  38. def toString(): String

    Permalink
    Definition Classes
    ToBriefXMLImpl → AnyRef → Any
  39. final def truncateByJustification(ustate: UState, str: String, nChars: Long): String

    Permalink

    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
  40. def unparse(state: UState): Unit

    Permalink
    Definition Classes
    StringMaybeTruncateCharactersUnparser → Unparser
  41. final def unparse1(ustate: UState, ignore: AnyRef): Unit

    Permalink
    Definition Classes
    Unparser
  42. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. macro def withLoggingLevel[S](newLevel: Type)(body: ⇒ S): Unit

    Permalink
    Definition Classes
    Logging

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 Logging

Inherited from Identity

Inherited from ToBriefXMLImpl

Inherited from AnyRef

Inherited from Any

Ungrouped