129130131132133134135136
JSONTokener t = new JSONTokener(s); Object o = t.nextValue(); if (o instanceof JSONArray) { return (JSONArray) o; } else { throw new JSONException(s + " couldn't be parsed as JSON array"); } }
123124125126127128129130
*/ public void pad(int width) throws JSONException { try { this.bitwriter.pad(width); } catch (Throwable e) { throw new JSONException(e); } }
143144145146147148149150
this.bitwriter.write(integer, width); if (probe) { log(integer, width); } } catch (Throwable e) { throw new JSONException(e); } }
286287288289290291292293294
if (value instanceof JSONObject) { write((JSONObject) value); } else if (value instanceof JSONArray) { write((JSONArray) value); } else { throw new JSONException("Unrecognized object"); } } }
335336337338339340341342
if (JSONzip.probe) { JSONzip.logchar(symbol.integer, this.width); } return symbol.integer; } catch (Throwable e) { throw new JSONException(e); } }
377378379380381382383384
} else { bitwriter.one(); } } } catch (Throwable e) { throw new JSONException(e); } }
686970717273747576
if (probe) { log(value ? 1 : 0); } return value; } catch (Throwable e) { throw new JSONException(e); } }
93949596979899100101102103104105
if (JSONzip.probe) { JSONzip.log("\"" + value + "\""); JSONzip.log(integer, width); } if (integer >= keep.length) { throw new JSONException("Deep error."); } keep.tick(integer); return value; } catch (Throwable e) { throw new JSONException(e); } }
114115116117118119120121
*/ public boolean pad(int width) throws JSONException { try { return this.bitreader.pad(width); } catch (Throwable e) { throw new JSONException(e); } }
134135136137138139140141
if (probe) { log(value, width); } return value; } catch (Throwable e) { throw new JSONException(e); } }