title: Alternative to RandomAccessFile.setLength()
body: <p>In case the underlining file system does not support <code>RandomAccessFile.setLength(..)</code> operation, is there any equivalent file operation in <code>Java</code>, e.g. writing empty content until certain size?</p>
  
  <p>Thanks in advance.</p>