In my project I need to record some structures into a binary files.
1. the recording need to be in a separate task (separate context)
2. the size of each binary file need to be of X bytes (i.e one file can contains several records, and just when there are enough records a new file will be record)
Is there an implementation of this in Java ? or Do I need to develop it by my own ?