Class StandardEdifactCharacterSet

java.lang.Object
com.adaptris.edi.StandardEdifactCharacterSet
All Implemented Interfaces:
CharacterSet

public class StandardEdifactCharacterSet extends 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 Details

    • StandardEdifactCharacterSet

      public StandardEdifactCharacterSet()
  • Method Details

    • getSeparator

      public char getSeparator(int type) throws 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:
      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(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object