Class StreamerHelper

Object
StreamerHelper

public class StreamerHelper extends Object
  • Method Details

    • getStream

      public static StreamingOutput getStream(Stream<String> incoming)
      Converts a stream of strings into a streaming json array.
      Parameters:
      incoming - the stream of strings (usually received from a database).
      Returns:
      a stream for streaming to the client/JAX-RS
    • getStream

      public static StreamingOutput getStream(ScrollableCursor cursor)
    • getScrollableCursor

      public static ScrollableCursor getScrollableCursor(EntityManager entityManager, String getQuery)
    • getStream

      public static StreamingOutput getStream(EntityManager entityManager, String getQuery)