Package org.apache.hadoop.fs.http.client
Class HttpFSUtils
java.lang.Object
org.apache.hadoop.fs.http.client.HttpFSUtils
Utility methods used by HttpFS classes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectjsonParse(HttpURLConnection conn) Convenience method that JSON Parses theInputStreamof aHttpURLConnection.
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_VERSION
- See Also:
-
EMPTY_BYTES
public static final byte[] EMPTY_BYTES
-
-
Constructor Details
-
HttpFSUtils
public HttpFSUtils()
-
-
Method Details
-
jsonParse
Convenience method that JSON Parses theInputStreamof aHttpURLConnection.- Parameters:
conn- theHttpURLConnection.- Returns:
- the parsed JSON object.
- Throws:
IOException- thrown if theInputStreamcould not be JSON parsed.
-