Class StandardEdifactCharacterSet

  • All Implemented Interfaces:
    CharacterSet

    public class StandardEdifactCharacterSet
    extends java.lang.Object
    implements CharacterSet
    Standard EDIFACT CharacterSet implementation.

    In the adapter configuration file this class is aliased as edi-standard-edifact which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • StandardEdifactCharacterSet

        public StandardEdifactCharacterSet()
    • Method Detail

      • getSeparator

        public char getSeparator​(int type)
                          throws java.lang.Exception
        Description copied from interface: CharacterSet
        Method to return a separator char for a given DataModelPart type.
        Specified by:
        getSeparator in interface CharacterSet
        Parameters:
        type - which referes to one of the DataModelPart static types
        Returns:
        the separator char
        Throws:
        java.lang.Exception - of the type isn't supported
      • getSeparators

        public char[] getSeparators()
        Description copied from interface: CharacterSet
        Method to return an array containing all the separators used by this character set. Should not include the escape character.
        Specified by:
        getSeparators in interface CharacterSet
        Returns:
        char array of separators
      • getEscapeCharacter

        public char getEscapeCharacter()
        Description copied from interface: CharacterSet
        Method to return the Escape character for this character set
        Specified by:
        getEscapeCharacter in interface CharacterSet
        Returns:
        the escape char
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object