file - How to make Java code pause and resume after event without polling -


i working in 2 applications. in first 1 need detect if file or folder has been modified. without continuously polling file save system resources. have been taking @ google drive program , doesn't consume resources while there no modifications on synced folder, possible in java?

lastly trying implement input stream reads characters queue until finds new line character '\n'. pause if queue empty until populated again, how done without continuously checking if queue empty? please remember inputstream supposed pause program's execution while gets data.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -