|
static String | rawUrlEncode (String url, boolean encodeSpaces) |
|
static String | rawUrlDecode (String url) |
|
static String | implode (String delimiter, List elements) |
|
static void | addAssetToXML (StringBuffer xml, Asset asset, int start, int limit) |
|
static void | addAssetToXML (StringBuffer xml, String assetid, String linkid, int start, int limit) |
|
MatrixToolkit also defines methods that provide functionality similar to their PHP counterparts so that the Java Asset Map and the Matrix PHP source can Interoperate
- Author
- Marc McIntyre mmcin.nosp@m.tyre.nosp@m.@squi.nosp@m.z.ne.nosp@m.t
Definition at line 32 of file MatrixToolkit.java.
static void addAssetToXML |
( |
StringBuffer |
xml, |
|
|
String |
assetid, |
|
|
String |
linkid, |
|
|
int |
start, |
|
|
int |
limit |
|
) |
| |
|
inlinestatic |
Adds an XML node to the specified string buffer. The xml can be used for requests for assets.
- Parameters
-
xml | the string buffer that contains the xml |
asset | the asset to add. |
Definition at line 107 of file MatrixToolkit.java.
static String implode |
( |
String |
delimiter, |
|
|
List |
elements |
|
) |
| |
|
inlinestatic |
Implodes a Vector with a specified delimiter, creating a string. Currently, this method can handle Vectors occupied with Integer and/or String objects.
- Parameters
-
delimiter | the delimiter that each element in the vector will be sererated by |
elements | the elements to implode |
- Returns
- String the imploded elements string
Definition at line 83 of file MatrixToolkit.java.
static String rawUrlDecode |
( |
String |
url | ) |
|
|
inlinestatic |
Decodes a string from the UTF-8 encoding standard to a normal string
- Parameters
-
- Returns
- the decoded String
Definition at line 64 of file MatrixToolkit.java.
static String rawUrlEncode |
( |
String |
url, |
|
|
boolean |
encodeSpaces |
|
) |
| |
|
inlinestatic |
Encodes a string using the UTF-8 encoding format. Useful for encoding strings for urls
- Parameters
-
url | the string to encode |
encodeSpaces | if TRUE spaces will be encoded to plus signs(+) which will produce a string that is a legal url |
- Returns
- the URL encoded String
Definition at line 46 of file MatrixToolkit.java.
The documentation for this class was generated from the following file:
- /Users/webmaster/Desktop/squiz_matrix/core/lib/asset_map/java/src/net/squiz/matrix/core/MatrixToolkit.java