diff options
| author | Bdale Garbee <bdale@gag.com> | 2017-07-21 17:44:03 -0600 | 
|---|---|---|
| committer | Bdale Garbee <bdale@gag.com> | 2017-07-21 17:44:03 -0600 | 
| commit | c8dbcaf69cd538a31ab6e2b568237ae7c8656a9a (patch) | |
| tree | 213ec02db2e80f2e8c39772c0bde95d802900e53 /altoslib/AltosJson.java | |
| parent | 0cbfa444a9f9159cb509bb47ca5590fc1d709f64 (diff) | |
| parent | ea3b5815b27005b2f4c3034715f656d28ea8534e (diff) | |
Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
Diffstat (limited to 'altoslib/AltosJson.java')
| -rw-r--r-- | altoslib/AltosJson.java | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/altoslib/AltosJson.java b/altoslib/AltosJson.java index 9191be68..52c9b41e 100644 --- a/altoslib/AltosJson.java +++ b/altoslib/AltosJson.java @@ -16,7 +16,7 @@   * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.   */ -package org.altusmetrum.altoslib_11; +package org.altusmetrum.altoslib_12;  import java.io.*;  import java.util.*; @@ -255,7 +255,7 @@ class JsonToken {   * Lexer for json   */  class JsonLexer extends JsonUtil { -	Reader			f; +	InputStream		f;  	int			line;  	int			ungot = -2;  	StringBuffer		pending_token; @@ -445,12 +445,12 @@ class JsonLexer extends JsonUtil {  	}  	JsonLexer(String s) { -		f = new StringReader(s); +		f = new AltosStringInputStream(s);  		line = 1;  		token = null;  	} -	JsonLexer(Reader f) { +	JsonLexer(InputStream f) {  		this.f = f;  		line = 1;  		token = null; @@ -570,7 +570,7 @@ class JsonParse {  		lexer = new JsonLexer(s);  	} -	JsonParse(Reader f) { +	JsonParse(InputStream f) {  		lexer = new JsonLexer(f);  	}  } @@ -670,7 +670,7 @@ public class AltosJson extends JsonUtil {  		}  	} -	public static AltosJson fromReader(Reader f) { +	public static AltosJson fromInputStream(InputStream f) {  		JsonParse	parse = new JsonParse(f);  		try {  			return parse.parse();  | 
