title: cutting a wave file
body: <p>How can i cut a <code>.wave</code> file using java ?</p>
  
  <p>What i want is : </p>
  
  <p>when the user presses the button labeled <code>cut</code> it should cut the audio from the previous <code>mark</code> (in nanoseconds) to the current position in nanoseconds. <em>(mark is positioned to the current position in nanoseconds after the sound is cut)</em> After i get that piece of audio,i want to save that piece of audio file.</p>
  
  <pre><code>// obtain an audio stream 
  long mark = 0; // initially set to zero
  //get the current position in nanoseconds
  // after that how to proceed ?
  // another method ?
  </code></pre>
  
  <p>How can i do that ?</p>