Changeset 13231 in josm for trunk/src/javax/json/JsonWriter.java
- Timestamp:
- 2017-12-23T02:40:43+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/javax/json/JsonWriter.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="JsonWriterExample1"/>54 53 * The following example demonstrates how write an empty JSON object: 55 54 * <pre> … … 74 73 * </code> 75 74 * </pre> 76 *77 * @author Jitendra Kotamraju78 75 */ 79 76 public interface JsonWriter extends /*Auto*/Closeable { … … 126 123 * cause of JsonException) 127 124 */ 125 126 /** 127 * Writes the specified {@link JsonValue} to the output source. 128 * method needs to be called only once for a write instance. 129 * 130 * @param value a {@code JsonValue} to be written to the output 131 * source 132 * @throws JsonException if the specified JSON object cannot be 133 * written due to i/o error (IOException would be cause of 134 * JsonException) 135 * @throws IllegalStateException if writeArray, writeObject, write 136 * or close method is already called 137 * 138 * @since 1.1 139 */ 140 default void write(JsonValue value) { 141 throw new UnsupportedOperationException(); 142 } 143 128 144 @Override 129 145 void close();
Note:
See TracChangeset
for help on using the changeset viewer.