title: create a temporary file with a specified name in java
body: <p>I have a Byte[] array that i want to put it's content into a temporary file .</p>
  
  <p>I have tryied to do it like this </p>
  
  <pre><code>try {
              tempFile = File.createTempFile("tmp", null);
              FileOutputStream fos = new FileOutputStream(tempFile);
              fos.write(sCourrier.getBody());
          } catch (IOException e) {
              e.printStackTrace();
          }
  </code></pre>
  
  <p>but i want that I specify the filename by myself so not generated by the jvm</p>