Package com.nimbusds.common.appendable
Class JSONObjectWriter<T extends net.minidev.json.JSONAware>
java.lang.Object
com.nimbusds.common.appendable.JSONObjectWriter<T>
- All Implemented Interfaces:
Appendable<T>
,Serializable
,Consumer<T>
@Deprecated
public class JSONObjectWriter<T extends net.minidev.json.JSONAware>
extends Object
implements Consumer<T>, Appendable<T>
Deprecated.
JSON object writer for JAX-RS result streaming.
Use JSONObjectWriter
.
- See Also:
-
Constructor Summary
ConstructorDescriptionJSONObjectWriter
(Writer writer, KeyExtractor<T> keyExtractor) Deprecated.Creates a new JSON object writer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.void
Deprecated.Appends the specified element.void
writeEnd()
Deprecated.Writes out the closing '}' of the JSON object and closes the writer.void
Deprecated.Writes out the opening '{' of the JSON object.
-
Constructor Details
-
JSONObjectWriter
Deprecated.Creates a new JSON object writer.- Parameters:
writer
- Writer for the JSON object. Must not benull
.keyExtractor
- Extracts or determines a JSON object key from the appended elements. Must not benull
.
-
-
Method Details
-
writeStart
Deprecated.Writes out the opening '{' of the JSON object. -
accept
Deprecated. -
append
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
Deprecated.Writes out the closing '}' of the JSON object and closes the writer.
-