MCPcopy Create free account
hub / github.com/apache/solr / stringToStream

Method stringToStream

solr/core/src/java/org/apache/solr/cli/PostTool.java:1076–1078  ·  view source on GitHub ↗

Converts a string to an input stream @param s the string @return the input stream

(String s)

Source from the content-addressed store, hash-verified

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

Callers 1

doArgsModeMethod · 0.95

Calls 1

getBytesMethod · 0.65

Tested by

no test coverage detected