I’m looking for the best way to stream live data over the http protocol with java.
I’m currently using HttpURLConnection to receive json feeds, I would like to know if it can be used to stream feeds too.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are looking for the “best” way to stream HTTP and JSON, I would suggest going with Apache HttpComponents and Jackson JSON library.
However, if you are just looking for streaming of a HttpURLConnection, the getInputStream method should provide for that.