public class CP
extends java.lang.Object
Constructor and Description |
---|
CP() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
arrayToString(java.lang.Object aArray)
* Convenience method for producing a simple textual representation of an array.
|
static int |
byteArrayToInt(byte[] b) |
static byte[] |
decodeBase64(java.lang.String base64) |
static java.lang.String |
encodeBase64(byte[] raw) |
static java.lang.String |
forHTMLTag(java.lang.String aTagFragment)
borrowed from http://www.javapractices.com/Topic96.cjp
|
static java.lang.String |
forURL(java.lang.String aURLFragment)
borrowed from http://www.javapractices.com/Topic96.cjp
|
static int |
getBit(int theByte,
int theIndex) |
static boolean |
inside(int[] theRect,
float theX,
float theY) |
static boolean |
inside(int[] theRect,
processing.core.PVector theVector) |
static byte[] |
intToByteArray(int a) |
static java.lang.String |
intToString(int theInt) |
static int |
parseHex(java.lang.String theHex)
convert a hex number into an int
|
static java.lang.String |
replace(java.lang.String theSourceString,
java.lang.String theSearchForString,
java.lang.String theReplaceString) |
static byte |
setHigh(byte theByte,
int theIndex) |
static byte |
setLow(byte theByte,
int theIndex) |
public static java.lang.String arrayToString(java.lang.Object aArray)
The format of the returned String
is the same as
AbstractCollection.toString
:
aArray
is a possibly-null array whose elements are primitives or objects; arrays
of arrays are also valid, in which case aArray
is rendered in a nested,
recursive fashion.public static int byteArrayToInt(byte[] b)
public static byte[] decodeBase64(java.lang.String base64)
public static java.lang.String encodeBase64(byte[] raw)
public static java.lang.String forHTMLTag(java.lang.String aTagFragment)
aTagFragment
- Stringpublic static java.lang.String forURL(java.lang.String aURLFragment)
aURLFragment
- Stringpublic static int getBit(int theByte, int theIndex)
public static boolean inside(int[] theRect, float theX, float theY)
public static boolean inside(int[] theRect, processing.core.PVector theVector)
public static byte[] intToByteArray(int a)
public static java.lang.String intToString(int theInt)
public static int parseHex(java.lang.String theHex)
theHex
- public static java.lang.String replace(java.lang.String theSourceString, java.lang.String theSearchForString, java.lang.String theReplaceString)
public static byte setHigh(byte theByte, int theIndex)
public static byte setLow(byte theByte, int theIndex)
processing library controlP5 by Andreas Schlegel. (c) 2006-2015