List of usage examples for java.util Arrays spliterator
public static Spliterator.OfDouble spliterator(double[] array)
From source file:org.graylog.plugins.nats.output.AbstractGelfNatsOutput.java
private static String[] splitByNewline(String text) { return StreamSupport.stream(Arrays.spliterator(text.split("\n")), false).map(String::trim) .filter(s -> !s.isEmpty()).toArray(String[]::new); }