src/main/java/org/semgus/java/event/EventParser.java
public static List<SpecEvent> parse(Reader jsonReader)
            throws IOException, ParseException, DeserializationException {
        Object eventsDto = JSON_PARSER.parse(jsonReader);
        if (!(eventsDto instanceof JSONArray)) {
            throw new DeserializationException("Event array must be a JSON array!");
        }
        return parse((JSONArray)eventsDto);
    }
/**
     * Fully consumes a {@link Reader} as a character stream and parses it into an array of parser events.
     *
     * @param jsonReader The reader to read JSON from.
     * @return The deserialized parser events.
     * @throws IOException              If there is an I/O error while reading from the stream.
     * @throws ParseException           If there is malformed JSON in the stream.
     * @throws DeserializationException If the JSON is not a valid representation of an array of parser events.
     */
Fully consumes a  Reader as a character stream and parses it into an array of parser events.
@param jsonReader The reader to read JSON from.
@return The deserialized parser events.
@throws IOException              If there is an I/O error while reading from the stream.
@throws ParseException           If there is malformed JSON in the stream.
@throws DeserializationException If the JSON is not a valid representation of an array of parser events.
Fully consumes a Reader as a character stream and parses it into an array of parser events . @param jsonReader The reader to read JSON from . @return The deserialized parser events . @throws IOException If there is an I / O error while reading from the stream . @throws ParseException If there is malformed JSON in the stream . @throws DeserializationException If the JSON is not a valid representation of an array of parser events .
public static List<SpecEvent> parse(Reader jsonReader)
            throws IOException, ParseException, DeserializationException {
        Object eventsDto = JSON_PARSER.parse(jsonReader);
        if (!(eventsDto instanceof JSONArray)) {
            throw new DeserializationException("Event array must be a JSON array!");
        }
        return parse((JSONArray)eventsDto);
    }
public static List < SpecEvent > parse ( Reader jsonReader ) throws IOException , ParseException , DeserializationException { Object eventsDto = JSON_PARSER . parse ( jsonReader ) ; if ( ! ( eventsDto instanceof JSONArray ) ) { throw new DeserializationException ( "Event array must be a JSON array!" ) ; } return parse ( ( JSONArray ) eventsDto ) ; }
Fully consumes a {@link Reader} as a character stream and parses it into an array of parser events.
Fully consumes a { @link Reader } as a character stream and parses it into an array of parser events .