java - Alternative to DataInputStream.readLine when dealing with binary data (so NOT BufferedReader) -
in situations, there need read binary info mixed ascii text inputstream. example, when processing http response, have headers in ascii text, , may have binary data.
i using datainputstream.readline
read lines of header, , datainputstream.read
within loop reading binary data. nevertheless, using deprecated method annoying me.
is there other filterinputstream
(not reader
, not dealing codifications) allows read lines?
would utilize aproach?
java inputstream
No comments:
Post a Comment