title: How to change the ImageIO write Endianness
body: <p>Im writing the RenderedImage of PDF to a tiff file using </p>
  
  <pre><code>javax.imageio.ImageIO.write(RenderedImage,"tif" ,file)
  </code></pre>
  
  <p>Im expecting my tiff file endian is little-endian, However it writes in big-endian, can help to explain how to change it to little-endian ?</p>
  
  <p>Can also explain why the data written using big-endian take more size than original file size ?
  I tried to convert the data to little-endian outside of my java code ,and the file size reduced drastically from 16 MB to 943 bytes.</p>