Changeset 13231 in josm for trunk/src/javax/json/JsonReader.java
- Timestamp:
- 2017-12-23T02:40:43+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/javax/json/JsonReader.java
r6756 r13231 2 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 3 * 4 * Copyright (c) 2012-201 3Oracle and/or its affiliates. All rights reserved.4 * Copyright (c) 2012-2017 Oracle and/or its affiliates. All rights reserved. 5 5 * 6 6 * The contents of this file are subject to the terms of either the GNU … … 9 9 * may not use this file except in compliance with the License. You can 10 10 * obtain a copy of the License at 11 * https:// glassfish.dev.java.net/public/CDDL+GPL_1_1.html12 * or packager/legal/LICENSE.txt. See the License for the specific11 * https://oss.oracle.com/licenses/CDDL+GPL-1.1 12 * or LICENSE.txt. See the License for the specific 13 13 * language governing permissions and limitations under the License. 14 14 * 15 15 * When distributing the software, include this License Header Notice in each 16 * file and include the License file at packager/legal/LICENSE.txt.16 * file and include the License file at LICENSE.txt. 17 17 * 18 18 * GPL Classpath Exception: … … 51 51 * 52 52 * <p> 53 * <a id="JsonReaderExample1"/>54 53 * The following example demonstrates how to read an empty JSON array from 55 54 * a string: … … 75 74 * </code> 76 75 * </pre> 77 *78 * @author Jitendra Kotamraju79 76 */ 80 77 public interface JsonReader extends /*Auto*/Closeable { … … 91 88 * @throws javax.json.stream.JsonParsingException if a JSON object or array 92 89 * cannot be created due to incorrect representation 93 * @throws IllegalStateException if read, readObject, readArray or94 * close method is already called90 * @throws IllegalStateException if read, readObject, readArray, 91 * readValue or close method is already called 95 92 */ 96 93 JsonStructure read(); … … 107 104 * @throws javax.json.stream.JsonParsingException if a JSON object cannot 108 105 * be created due to incorrect representation 109 * @throws IllegalStateException if read, readObject, readArray or110 * close method is already called106 * @throws IllegalStateException if read, readObject, readArray, 107 * readValue or close method is already called 111 108 */ 112 109 JsonObject readObject(); … … 123 120 * @throws javax.json.stream.JsonParsingException if a JSON array cannot 124 121 * be created due to incorrect representation 125 * @throws IllegalStateException if read, readObject, readArray or126 * close method is already called122 * @throws IllegalStateException if read, readObject, readArray, 123 * readValue or close method is already called 127 124 */ 128 125 JsonArray readArray(); 126 127 /** 128 * Returns a JSON value that is represented in 129 * the input source. This method needs to be called 130 * only once for a reader instance. 131 * 132 * @return a JSON value 133 * @throws JsonException if a JSON value 134 * be created due to i/o error (IOException would be 135 * cause of JsonException) 136 * @throws javax.json.stream.JsonParsingException if a JSON value 137 * cannot be created due to incorrect representation 138 * @throws IllegalStateException if read, readObject, readArray, 139 * readValue or close method is already called 140 * 141 * @since 1.1 142 */ 143 default JsonValue readValue() { 144 throw new UnsupportedOperationException(); 145 } 129 146 130 147 /**
Note:
See TracChangeset
for help on using the changeset viewer.