(String s)
| 251 | |
| 252 | |
| 253 | public static byte[] getBytes(String s) { |
| 254 | char [] chars= s.toCharArray(); |
| 255 | int size = chars.length; |
| 256 | byte[] bytes = new byte[size]; |
| 257 | |
| 258 | for (int i = 0; i < size;) |
| 259 | bytes[i] = (byte) chars[i++]; |
| 260 | return bytes; |
| 261 | } |
| 262 | |
| 263 | public static byte[] getBytes(InputStream is) throws IOException { |
| 264 |
no test coverage detected