MCPcopy Create free account
hub / github.com/0opslab/opslabJutil / toByteArray

Method toByteArray

src/main/java/com/opslab/util/CharUtil.java:131–133  ·  view source on GitHub ↗

Converts char array to byte array using default Jodd encoding.

(char[] carr)

Source from the content-addressed store, hash-verified

129 * Converts char array to byte array using default Jodd encoding.
130 */
131 public final static byte[] toByteArray(char[] carr) throws UnsupportedEncodingException {
132 return new String(carr).getBytes(Opslab.UTF_8);
133 }
134
135 /**
136 * Converts char array to byte array using provided encoding.

Callers 11

encodeBytesMethod · 0.45
encodeBytesMethod · 0.45
decodeMethod · 0.45
stream2ByteMethod · 0.45
pngCaptchaBase64Method · 0.45
gifCaptchaBase64Method · 0.45
getFrameByteArrayMethod · 0.45
decryptByPrivateKeyMethod · 0.45
decryptByPublicKeyMethod · 0.45
encryptByPublicKeyMethod · 0.45
encryptByPrivateKeyMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected