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
ConstructorsConstructorDescriptionJSONObjectWriter(Writer writer, KeyExtractor<T> keyExtractor) Deprecated.Creates a new JSON object writer. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.voidDeprecated.Appends the specified element.voidwriteEnd()Deprecated.Writes out the closing '}' of the JSON object and closes the writer.voidDeprecated.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:AppendableAppends the specified element.- Specified by:
appendin 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.
-