I intend to use the markSupported feature for checking first byte to check the format then reset it, please tell me which stream should be used for tcp based communication in ...
I have written one proxy for intercepting the http requests for my tomcat.
every request would go through my proxy and do some checking before it reaches the tomcat server. i am ...
i would like to know how to keep the input stream of a socket and reuse it until the application is close.
What i do for now is creating a thread in ...
i was just wandering if this was a good or bad idea:
InputStreamReader in = new InputStreamReader(socket.getInputStream());
BufferedReader reader = new BufferedReader(in);
DataInputStream dis = new DataInputStream(in);