| java.lang.Object uk.org.ponder.stringutil.CharToByteBase64
CharToByteBase64 | public class CharToByteBase64 (Code) | | A utility class to decode Base64-encoded character strings back into
byte arrays.
|
Method Summary | |
public static byte[] | decode(char[] inarray, int instart, int inlength) Decode an input array of chars into an output array of bytes. | public static int | decode(char[] inarray, int instart, int inlength, byte[] outarray, int outstart) Decode an input array of chars into an output array of bytes.
Parameters: inarray - An character array holding the data to be converted fromBase64 to bytes. Parameters: instart - The start position of the character data to be converted. Parameters: inlength - The length of the character data to be converted. Parameters: outarray - A byte array to receive the decoded character data. Parameters: outstart - The position within the byte array to start writing thedecoded data. |
pem_reverse_array | final public static byte pem_reverse_array(Code) | | |
decode | public static byte[] decode(char[] inarray, int instart, int inlength)(Code) | | Decode an input array of chars into an output array of bytes. This method is
more inefficient than the 5-parameter version below since a new byte output
array is allocated and returned with each call.
Parameters: inarray - An character array holding the data to be converted fromBase64 to bytes. Parameters: instart - The start position of the character data to be converted. Parameters: inlength - The length of the character data to be converted. A byte array holding the decoded bytes. |
decode | public static int decode(char[] inarray, int instart, int inlength, byte[] outarray, int outstart)(Code) | | Decode an input array of chars into an output array of bytes.
Parameters: inarray - An character array holding the data to be converted fromBase64 to bytes. Parameters: instart - The start position of the character data to be converted. Parameters: inlength - The length of the character data to be converted. Parameters: outarray - A byte array to receive the decoded character data. Parameters: outstart - The position within the byte array to start writing thedecoded data. The number of bytes that were decoded and written to the suppliedbyte array. |
|
|