I have a file as https://localhost/myeg.xml
I want to read the file as string in Java.
Can somebody help me if there is a separate library or any way else.
I have a file as https://localhost/myeg.xml I want to read the file as string
Share
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.
You can try:
utf-8, if the originating host does specify encoding, I would use.openConnection()and figure out the “content type” (and encoding) before reading the stream.InputStreamin aBufferedInputStream.try-finallyto close theInputStream