Hi, Does any body know how to put a timer to a reader? for example: I have an inputStream to read from a file. I use it to write to the file on the remote server via socket connection. The socket connection simulates FTP. So it only reads from inputStream when the ftp server is ready to except the data. I want to throw an exception and close local file if the InputStream was not used for more then 5 min. I can not rewrite the FTP client, it was give to me as API. So all I can do is put some kind timer on the local Stream.
You're not going crazy. You're going sane in a crazy word. Find comfort in this tiny ad: