Class JSONArrayWrappedRepeatableEntity

    • Constructor Detail

      • JSONArrayWrappedRepeatableEntity

        public JSONArrayWrappedRepeatableEntity​(InputStream input,
                                                ContentType contentType)
        Creates a new RepeatableEntity instance. This will attempt to wrap the incoming input stream with JSON brackets e.g [ ] before sending the data to the output stream. This constructor assumes that the provided stream has been already been "marked", i.e., calling InputStream.reset() will position the stream at the position it was in when passed to this constructor.
        Parameters:
        input - the input stream (required to support mark/rest)
        contentType - the content type of the input stream