Package com.nimbusds.common.appendable
Class JSONArrayWriter<T extends net.minidev.json.JSONAware>
- java.lang.Object
-
- com.nimbusds.common.appendable.JSONArrayWriter<T>
-
- All Implemented Interfaces:
Appendable<T>
,Serializable
,Consumer<T>
@Deprecated public class JSONArrayWriter<T extends net.minidev.json.JSONAware> extends Object implements Consumer<T>, Appendable<T>
Deprecated.JSON array writer for JAX-RS result streaming.Use
JSONArrayWriter
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JSONArrayWriter(Writer writer)
Deprecated.Creates a new JSON array writer.JSONArrayWriter(Writer writer, boolean noDuplicates)
Deprecated.Creates a new JSON array writer.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
accept(T element)
Deprecated.void
append(T element)
Deprecated.void
writeEnd()
Deprecated.Writes out the closing ']' of the JSON array and closes the writer.void
writeStart()
Deprecated.Writes out the opening '[' of the JSON array.
-
-
-
Constructor Detail
-
JSONArrayWriter
public JSONArrayWriter(Writer writer)
Deprecated.Creates a new JSON array writer. The output JSON array may contain duplicates.- Parameters:
writer
- Writer for the JSON array. Must not benull
.
-
JSONArrayWriter
public JSONArrayWriter(Writer writer, boolean noDuplicates)
Deprecated.Creates a new JSON array writer.- Parameters:
writer
- Writer for the JSON array. Must not benull
.noDuplicates
-true
to ensure no duplicates are written to the JSON array.
-
-
Method Detail
-
writeStart
public void writeStart()
Deprecated.Writes out the opening '[' of the JSON array.
-
append
@Deprecated public void append(T element)
Deprecated.Description copied from interface:Appendable
Appends the specified element.- Specified by:
append
in interfaceAppendable<T extends net.minidev.json.JSONAware>
- Parameters:
element
- The element to append. May benull
.
-
writeEnd
public void writeEnd()
Deprecated.Writes out the closing ']' of the JSON array and closes the writer.
-
-