in src/main/java/org/apache/sling/pipes/AbstractInputStreamPipe.java [159:176]
InputStream getInputStream() throws IOException {
String expr = getExpr();
if (expr.startsWith(REMOTE_START) && !properties.get(PN_URL_MODE, URL_MODE_FETCH).equalsIgnoreCase(URL_MODE_AS_IS)) {
if (StringUtils.isNotBlank(expr)) {
return getConnection(expr).getInputStream();
}
}
if (VALID_PATH.matcher(expr).find()) {
InputStream resourceIs = getInputStreamFromResource(expr);
if (resourceIs != null) {
return resourceIs;
}
}
if (getBindings().getBindings().get(BINDING_IS) != null) {
return (InputStream)getBindings().getBindings().get(BINDING_IS);
}
return new ByteArrayInputStream(expr.getBytes(StandardCharsets.UTF_8));
}