title: Binary editing in java
body: <p>I have a file that I am trying to binary edit to cut off a header.</p>
  
  <p>I have identified the start address of the actual data I want to keep in the file, however I am trying to find a way in Java where I can specify a range of bytes to delete from a file.</p>
  
  <p>At the moment I am reading the file in a (Buffered)FileInputStream, and the only way I can see to cut off the header of this file is to save from my start address to the end of the file in memory, then write that out overwriting the original file.</p>
  
  <p>Is there any functionality to remove bits in files without having to go through the process of creating a whole new file?</p>