![JAR search and dependency download from the Maven repository](/logo.png)
org.noregress.pagespeed.Parser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of noregress Show documentation
Show all versions of noregress Show documentation
Java Library for Performance Regression Tests
The newest version!
package org.noregress.pagespeed;
import java.io.IOException;
import java.io.InputStream;
import org.json.JSONException;
import org.json.JSONObject;
import org.json.JSONTokener;
class Parser {
PageSpeedResult parse(InputStream in) throws IOException {
PageSpeedResult result;
try {
JSONTokener tokener = new JSONTokener(in);
JSONObject json = new JSONObject(tokener);
result = new PageSpeedResult(json);
}
catch (JSONException e) {
throw new IllegalStateException("Invalid JSON ", e);
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy