title: Circumvent Array size > Integer.MAX_VALUE for BufferedImage?
body: <p>I am using a Java program for some image processing and currently I am working with some rather large images (on the order of a gigapixel).</p>
  
  <p>Not surprisingly, I have been unable to do much, due to the following exception:</p>
  
  <pre><code>Exception:
  java.lang.IllegalArgumentException: Array size &gt; Integer.MAX_VALUE!
      at javax.imageio.ImageTypeSpecifier.createBufferedImage(ImageTypeSpecifier.java:1064)
      at javax.imageio.ImageReader.getDestination(ImageReader.java:2879)
      at com.sun.imageio.plugins.jpeg.JPEGImageReader.readInternal(JPEGImageReader.java:1046)
      at com.sun.imageio.plugins.jpeg.JPEGImageReader.read(JPEGImageReader.java:1014)
      at javax.imageio.ImageIO.read(ImageIO.java:1422)
      at javax.imageio.ImageIO.read(ImageIO.java:1282)
  ...
  </code></pre>
  
  <p>I am wondering if there is any way I might circumvent this limit by overloading the BufferedImage class with another compatible class that supports large images?</p>