Changeset 13231 in josm for trunk/src/javax/json/stream/JsonParserFactory.java
- Timestamp:
- 2017-12-23T02:40:43+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/javax/json/stream/JsonParserFactory.java
r6756 r13231 2 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 3 3 * 4 * Copyright (c) 2011-201 3Oracle and/or its affiliates. All rights reserved.4 * Copyright (c) 2011-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: … … 69 69 * <p> All the methods in this class are safe for use by multiple concurrent 70 70 * threads. 71 *72 * @author Jitendra Kotamraju73 71 */ 74 72 public interface JsonParserFactory { … … 78 76 * 79 77 * @param reader a i/o reader from which JSON is to be read 78 * @return the created JSON parser 80 79 */ 81 80 JsonParser createParser(Reader reader); … … 84 83 * Creates a JSON parser from the specified byte stream. 85 84 * The character encoding of the stream is determined 86 * as specified in <a href="http://tools.ietf.org/rfc/rfc 4627.txt">RFC4627</a>.85 * as specified in <a href="http://tools.ietf.org/rfc/rfc7159.txt">RFC 7159</a>. 87 86 * 88 87 * @param in i/o stream from which JSON is to be read 88 * @return the created JSON parser 89 89 * @throws javax.json.JsonException if encoding cannot be determined 90 90 * or i/o error (IOException would be cause of JsonException) … … 99 99 * @param in i/o stream from which JSON is to be read 100 100 * @param charset a charset 101 * @return the created JSON parser 101 102 */ 102 103 JsonParser createParser(InputStream in, Charset charset); … … 106 107 * 107 108 * @param obj a JSON object 109 * @return the created JSON parser 108 110 */ 109 111 JsonParser createParser(JsonObject obj); … … 113 115 * 114 116 * @param array a JSON array 117 * @return the created JSON parser 115 118 */ 116 119 JsonParser createParser(JsonArray array);
Note:
See TracChangeset
for help on using the changeset viewer.
