public class SwiftCharsetUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
OK |
Constructor and Description |
---|
SwiftCharsetUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
filter(java.lang.String s,
SwiftCharset charset)
Returns a new string removing all characters that not belong to the parameter charset
|
static char[] |
get_a()
Gets SWIFT a charset; alphabetic capital letters (A through Z), upper case only.
|
static char[] |
get_A()
Gets SWIFT A charset; alphabetic, upper case or lower case A through Z, a through z.
|
static char[] |
get_B()
Gets SWIFT B charset; alphanumeric upper case or lower case A through Z, a through z and 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.
|
static char[] |
get_c()
Gets SWIFT c charset; alpha-numeric capital letters (upper case), and digits only.
|
static char[] |
get_n()
Gets SWIFT n charset; numeric digits (0 through 9) only.
|
static char[] |
get_x()
Gets SWIFT x charset; any character of the X permitted set (General FIN application set) upper case and lower case allowed.
|
static char[] |
get_y()
Gets SWIFT y charset; any character of the Y permitted set (EDI service specific set), upper case only.
|
static char[] |
get_z()
Gets SWIFT z charset; all characters included in the X and Y sets, plus a couple of special characters.
|
static java.lang.String |
getAsString(char[] charset) |
static java.lang.String |
getAsString(SwiftCharset charset) |
static boolean |
is_a(char c)
Returns true if the parameter char is part of the a character set.
|
static boolean |
is_A(char c)
Returns true if the parameter char is part of the A character set.
|
static int |
is_a(java.lang.String s)
Returns this.OK (-1) if all characters of parameter string are part of the a character set.
|
static int |
is_A(java.lang.String s)
Returns this.OK (-1) if all characters of parameter string are part of the A character set.
|
static boolean |
is_B(char c)
Returns true if the parameter char is part of the B character set.
|
static int |
is_B(java.lang.String s)
Returns this.OK (-1) if all characters of parameter string are part of the B character set.
|
static boolean |
is_c(char c)
Returns true if the parameter char is part of the c character set.
|
static int |
is_c(java.lang.String s)
Returns this.OK (-1) if all characters of parameter string are part of the c character set.
|
static boolean |
is_n(char c)
Returns true if the parameter char is part of the n character set.
|
static int |
is_n(java.lang.String s)
Returns this.OK (-1) if all characters of parameter string are part of the n character set.
|
static boolean |
is_x(char c)
Returns true if the parameter char is part of the x character set.
|
static int |
is_x(java.lang.String s)
Returns this.OK (-1) if all characters of parameter string are part of the x character set.
|
static boolean |
is_y(char c)
Returns true if the parameter char is part of the y character set.
|
static int |
is_y(java.lang.String s)
Returns this.OK (-1) if all characters of parameter string are part of the y character set.
|
static boolean |
is_z(char c)
Returns true if the parameter char is part of the z character set.
|
static int |
is_z(java.lang.String s)
Returns this.OK (-1) if all characters of parameter string are part of the z character set.
|
static boolean |
is(char c,
SwiftCharset charset) |
static int |
is(java.lang.String s,
SwiftCharset charset) |
public static java.lang.String filter(java.lang.String s, SwiftCharset charset)
s
- charset
- public static char[] get_a()
public static char[] get_A()
public static char[] get_B()
public static char[] get_c()
public static char[] get_n()
public static char[] get_x()
public static char[] get_y()
public static char[] get_z()
public static java.lang.String getAsString(char[] charset)
public static java.lang.String getAsString(SwiftCharset charset)
getAsString(char[])
public static boolean is_a(char c)
get_a()
public static boolean is_A(char c)
get_A()
public static int is_a(java.lang.String s)
get_a()
public static int is_A(java.lang.String s)
get_A()
public static boolean is_B(char c)
get_B()
public static int is_B(java.lang.String s)
get_B()
public static boolean is_c(char c)
get_c()
public static int is_c(java.lang.String s)
get_c()
public static boolean is_n(char c)
get_n()
public static int is_n(java.lang.String s)
get_n()
public static boolean is_x(char c)
get_x()
public static int is_x(java.lang.String s)
get_x()
public static boolean is_y(char c)
get_y()
public static int is_y(java.lang.String s)
get_y()
public static boolean is_z(char c)
get_z()
public static int is_z(java.lang.String s)
get_z()
public static boolean is(char c, SwiftCharset charset)
is(String, char[])
public static int is(java.lang.String s, SwiftCharset charset)
is(String, char[])