1 7 8 17 18 package com.sun.image.codec.jpeg; 19 20 import java.awt.image.Raster ; 21 import java.awt.image.BufferedImage ; 22 40 public 41 class TruncatedFileException extends RuntimeException { 42 private Raster ras = null; 43 private BufferedImage bi = null; 44 45 46 53 public TruncatedFileException(BufferedImage bi) { 54 super("Premature end of input file"); 55 this.bi = bi; 56 this.ras = bi.getData(); 57 } 58 59 66 public TruncatedFileException(Raster ras) { 67 super("Premature end of input file"); 68 this.ras = ras; 69 } 70 71 76 public Raster getRaster() { return ras; } 77 78 83 public BufferedImage getBufferedImage() { return bi; } 84 } 85 | Popular Tags |