Debian Codegraph @

src/jakarta/json/stream/package-info.java

raw symbols SCIP
1 /*
2 * Copyright (c) 2012, 2021 Oracle and/or its affiliates. All rights reserved.
3 *
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v. 2.0, which is available at
6 * http://www.eclipse.org/legal/epl-2.0.
7 *
8 * This Source Code may also be made available under the following Secondary
9 * Licenses when the conditions for such availability set forth in the
10 * Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
11 * version 2 with the GNU Classpath Exception, which is available at
12 * https://www.gnu.org/software/classpath/license.html.
13 *
14 * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
15 */
16
17 /**
18 * Provides a streaming API to parse and generate
19 * <a href="http://json.org/">JSON</a>.
20 *
21 * <p>
22 * The streaming API consists of the interfaces
23 * {@link jakarta.json.stream.JsonParser} and
24 * {@link jakarta.json.stream.JsonGenerator}. The interface {@code JsonParser}
25 * contains methods to parse JSON in a streaming way. The interface
26 * {@code JsonGenerator} contains methods to write JSON to an output source
27 * in a streaming way.
28 *
29 * <p>
30 * {@code JsonParser} provides forward, read-only access to JSON data using the
31 * pull parsing programming model. In this model the application code controls
32 * the thread and calls methods in the parser interface to move the parser
33 * forward or to obtain JSON data from the current state of the parser.
34 *
35 * <p>
36 * {@code JsonGenerator} provides methods to write JSON to an output source.
37 * The generator writes name/value pairs in JSON objects and values in JSON
38 * arrays.
39 *
40 * <p>
41 * The streaming API is a low-level API designed to process large amounts of
42 * JSON data efficiently. Other JSON frameworks (such as JSON binding) can be
43 * implemented using this API.
44 *
45 * @since JSON Processing 1.0
46 */
47 package jakarta.json.stream;