// Path: json-smart/src/main/java/net/minidev/json/parser/ParseException.java
// public static final int ERROR_UNEXPECTED_CHAR = 0;
// 
// Path: json-smart/src/main/java/net/minidev/json/parser/ParseException.java
// public static final int ERROR_UNEXPECTED_TOKEN = 1;


import static net.minidev.json.parser.ParseException.ERROR_UNEXPECTED_CHAR;
import static net.minidev.json.parser.ParseException.ERROR_UNEXPECTED_TOKEN;
import java.io.IOException;
package net.minidev.json.parser;

/*
 *    Copyright 2011 JSON-SMART authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


/**
 * Parser for JSON text. Please note that JSONParser is NOT thread-safe.
 * 
 * @author Uriel Chemouni <uchemouni@gmail.com>
 * @see JSONParserInputStream
 * @see JSONParserReader
 */
abstract class JSONParserStream extends JSONParserBase {
	// len
	//
	public JSONParserStream(int permissiveMode) {
		super(permissiveMode);
	}

	protected void readNQString(boolean[] stop) throws IOException {
		sb.clear();
		skipNQString(stop);
		xs = sb.toString().trim();
	}

// Path: json-smart/src/main/java/net/minidev/json/parser/ParseException.java
// public static final int ERROR_UNEXPECTED_CHAR = 0;
// 
// Path: json-smart/src/main/java/net/minidev/json/parser/ParseException.java
// public static final int ERROR_UNEXPECTED_TOKEN = 1;


// Path: json-smart/src/main/java/net/minidev/json/parser/JSONParserStream.java
import static net.minidev.json.parser.ParseException.ERROR_UNEXPECTED_CHAR;
import static net.minidev.json.parser.ParseException.ERROR_UNEXPECTED_TOKEN;
import java.io.IOException;

package net.minidev.json.parser;

/*
 *    Copyright 2011 JSON-SMART authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */


/**
 * Parser for JSON text. Please note that JSONParser is NOT thread-safe.
 * 
 * @author Uriel Chemouni <uchemouni@gmail.com>
 * @see JSONParserInputStream
 * @see JSONParserReader
 */
abstract class JSONParserStream extends JSONParserBase {
	// len
	//
	public JSONParserStream(int permissiveMode) {
		super(permissiveMode);
	}

	protected void readNQString(boolean[] stop) throws IOException {
		sb.clear();
		skipNQString(stop);
		xs = sb.toString().trim();
	}

	protected Object readNumber(boolean[] stop) throws ParseException, IOException {