Package edu.uiuc.ncsa.qdl.variables
Class MetaCodec
- java.lang.Object
-
- edu.uiuc.ncsa.qdl.variables.MetaCodec
-
public class MetaCodec extends Object
This will convert a string and encode or decode all characters that are not [a-z][A-Z] as per various standards. This allows QDL to write scripts in other languages or pass around escaped strings.Created by Jeff Gaynor
on 3/9/20 at 6:13 AM
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALGORITHM_BASE16
static String
ALGORITHM_BASE16_NAME
static int
ALGORITHM_BASE32
static String
ALGORITHM_BASE32_NAME
static int
ALGORITHM_BASE64
static String
ALGORITHM_BASE64_NAME
static int
ALGORITHM_CSV
static String
ALGORITHM_CSV_NAME
static int
ALGORITHM_ECMA
static String
ALGORITHM_ECMA_NAME
static int
ALGORITHM_HTML3
static String
ALGORITHM_HTML3_NAME
static int
ALGORITHM_HTML4
static String
ALGORITHM_HTML4_NAME
static int
ALGORITHM_JAVA
static String
ALGORITHM_JAVA_NAME
static int
ALGORITHM_JSON
static String
ALGORITHM_JSON_NAME
static int
ALGORITHM_URLCODE
static String
ALGORITHM_URLCODE_NAME
static int
ALGORITHM_VENCODE
static String
ALGORITHM_VENCODE_NAME
static int
ALGORITHM_XML_1_0
static String
ALGORITHM_XML_1_0_NAME
static int
ALGORITHM_XML_1_1
static String
ALGORITHM_XML_1_1_NAME
static int
ALGORITHM_XSI
static String
ALGORITHM_XSI_NAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AbstractCodec
createCodec(int currentType)
static AbstractCodec
createCodec(Object object)
static AbstractCodec
createCodec(String currentType)
String
decode(String encoded)
String
encode(String token)
static void
main(String[] args)
-
-
-
Field Detail
-
ALGORITHM_VENCODE
public static final int ALGORITHM_VENCODE
- See Also:
- Constant Field Values
-
ALGORITHM_URLCODE
public static final int ALGORITHM_URLCODE
- See Also:
- Constant Field Values
-
ALGORITHM_BASE16
public static final int ALGORITHM_BASE16
- See Also:
- Constant Field Values
-
ALGORITHM_BASE32
public static final int ALGORITHM_BASE32
- See Also:
- Constant Field Values
-
ALGORITHM_BASE64
public static final int ALGORITHM_BASE64
- See Also:
- Constant Field Values
-
ALGORITHM_XML_1_0
public static final int ALGORITHM_XML_1_0
- See Also:
- Constant Field Values
-
ALGORITHM_XML_1_1
public static final int ALGORITHM_XML_1_1
- See Also:
- Constant Field Values
-
ALGORITHM_JSON
public static final int ALGORITHM_JSON
- See Also:
- Constant Field Values
-
ALGORITHM_JAVA
public static final int ALGORITHM_JAVA
- See Also:
- Constant Field Values
-
ALGORITHM_HTML3
public static final int ALGORITHM_HTML3
- See Also:
- Constant Field Values
-
ALGORITHM_HTML4
public static final int ALGORITHM_HTML4
- See Also:
- Constant Field Values
-
ALGORITHM_CSV
public static final int ALGORITHM_CSV
- See Also:
- Constant Field Values
-
ALGORITHM_ECMA
public static final int ALGORITHM_ECMA
- See Also:
- Constant Field Values
-
ALGORITHM_XSI
public static final int ALGORITHM_XSI
- See Also:
- Constant Field Values
-
ALGORITHM_BASE16_NAME
public static final String ALGORITHM_BASE16_NAME
- See Also:
- Constant Field Values
-
ALGORITHM_BASE32_NAME
public static final String ALGORITHM_BASE32_NAME
- See Also:
- Constant Field Values
-
ALGORITHM_BASE64_NAME
public static final String ALGORITHM_BASE64_NAME
- See Also:
- Constant Field Values
-
ALGORITHM_CSV_NAME
public static final String ALGORITHM_CSV_NAME
- See Also:
- Constant Field Values
-
ALGORITHM_ECMA_NAME
public static final String ALGORITHM_ECMA_NAME
- See Also:
- Constant Field Values
-
ALGORITHM_HTML3_NAME
public static final String ALGORITHM_HTML3_NAME
- See Also:
- Constant Field Values
-
ALGORITHM_HTML4_NAME
public static final String ALGORITHM_HTML4_NAME
- See Also:
- Constant Field Values
-
ALGORITHM_JAVA_NAME
public static final String ALGORITHM_JAVA_NAME
- See Also:
- Constant Field Values
-
ALGORITHM_JSON_NAME
public static final String ALGORITHM_JSON_NAME
- See Also:
- Constant Field Values
-
ALGORITHM_URLCODE_NAME
public static final String ALGORITHM_URLCODE_NAME
- See Also:
- Constant Field Values
-
ALGORITHM_VENCODE_NAME
public static final String ALGORITHM_VENCODE_NAME
- See Also:
- Constant Field Values
-
ALGORITHM_XML_1_0_NAME
public static final String ALGORITHM_XML_1_0_NAME
- See Also:
- Constant Field Values
-
ALGORITHM_XML_1_1_NAME
public static final String ALGORITHM_XML_1_1_NAME
- See Also:
- Constant Field Values
-
ALGORITHM_XSI_NAME
public static final String ALGORITHM_XSI_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
createCodec
public static AbstractCodec createCodec(Object object)
-
createCodec
public static AbstractCodec createCodec(int currentType)
-
createCodec
public static AbstractCodec createCodec(String currentType)
-
main
public static void main(String[] args)
-
-