Java: Can multicast data get affected by system call
<p>I am receiving some multicast data and trying to record it. It's able to work properly. But today, I made some changes to the code and added a function to create the directory if it does not exist.</p>

<p>This call started affecting the sequence of bytes received. I think so because as soon as I commented out the part, the process works fine.</p>

<p>Is it really possible ?</p>

<pre><code> StringBuffer dirPath = new StringBuffer();
 dirPath.append(FileBaseDir);
 dirPath.append(FilePathSeparator);
 dirPath.append(date);

 File file = new File(dirPath);

 if (!file.exists()) {
     file.mkdir();
 }
`
</code></pre>
