Package com.isode.dsapi.profile
Class BindProfileList.StringSection
java.lang.Object
com.isode.dsapi.profile.BindProfileList.StringSection
- Enclosing class:
- BindProfileList
Utility class which just stores information about a substring inside
another String. The class is provided to allow an ISettingsEncrypter
to return information about which substring inside a larger String
is to be encrypted/decrypted.
- Since:
- 15.2
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StringSection
Construct a new object.- Parameters:
s
- the complete String; must not be null.startPos
- the start position in the String; must be a valid index inside the StringendPos
- the end position in the String; must be a valid index inside the String
-
-
Method Details
-
substring
Return the substring (i.e. the bit from the startPos to endPos.- Returns:
- the substring of the original string. Won't ever be null.
-
prefix
Return the bit of the String before the specified substring.- Returns:
- the prefix, which may be "" but won't be null.
-
suffix
Return the bit of the String following the specified substring.- Returns:
- the suffix, which may be "" but won't be null.
-
toString
-