Class VastExtKt

  • All Implemented Interfaces:

    
    public final class VastExtKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static String sanitize(String $self) Sanitizes a string by trimming whitespace characters and handling null values.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • sanitize

         final static String sanitize(String $self)

        Sanitizes a string by trimming whitespace characters and handling null values.

        This extension function provides safe string sanitization for VAST XML content, removing leading and trailing whitespace characters and converting null values to empty strings. This is essential for processing VAST XML data which may contain extraneous whitespace that could affect parsing or validation.

        The function uses a comprehensive whitespace check that includes all characters with ASCII values less than or equal to space character (32), ensuring thorough cleanup of control characters and whitespace.

        Returns:

        The sanitized string with whitespace removed, or empty string if null