java.lang.Object
com.aquima.interactions.foundation.security.util.TagUtil

public final class TagUtil extends Object
Utility class for locating tags in byte arrays containing. UTF-8 encoded strings
Since:
5.1
Author:
m.hesselink
  • Method Details

    • locateTag

      public static Position locateTag(String tagName, boolean isEndTag, byte[] bytes, int startIndex)
      Locate a tag.
      Parameters:
      tagName - name of the tag without tag delimiter symbols
      isEndTag - if true the end tag is searched
      bytes - array containing UTF-8 encoded string. In this array the tag is searched
      startIndex - index where to start searching
      Returns:
      Position If the tag could not be found, the start index will be -1