Java Input Stream buffer destiny after read

99 views Asked by At

I'm working with TCPClient socket on Android platform and need to keep connection open and send/recieve data from server while application running... As I noticed we have to call getInputStream method of socket class in order to read data. A question comes to mind after reading some data from InputStream/InputStreamReader/BufferedReader what will happen to the memory used for data. does java free the memory block after read? do we need to call reset method after reading whole single data packet?

0

There are 0 answers