title: Write to FileOutputStream from multiple threads in Java
body: <p>Is it safe to call <code>write</code> on Java <code>FileOutputStream</code> object form multiple threads? Will the output be serialized correctly?</p>
  
  <p>clarification:</p>
  
  <p>In my case the class logger holds a FileOutputStream reference, and multiple threads can call logger write, that formats the output and calls FileOutputStream write.</p>
  
  <p>Should I synchronize my logger write method to warrant that the messages from multiple threads are not mixed?</p>