Converts a string to an input stream @param s the string @return the input stream
(String s)
| 1074 | * @return the input stream |
| 1075 | */ |
| 1076 | public static InputStream stringToStream(String s) { |
| 1077 | return new ByteArrayInputStream(s.getBytes(StandardCharsets.UTF_8)); |
| 1078 | } |
| 1079 | |
| 1080 | /** |
| 1081 | * Pipes everything from the source to the dest. If dest is null, then everything is read from |