java.awt.image

Class RasterFormatException

Implemented Interfaces:
Serializable

public class RasterFormatException
extends RuntimeException

The RasterFormatException is thrown if there is invalid layout information in the Raster.
See Also:
Serialized Form

Constructor Summary

RasterFormatException(String s)
Constructs a new RasterFormatException with the specified message.

Method Summary

Methods inherited from class java.lang.Throwable

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

RasterFormatException

public RasterFormatException(String s)
Constructs a new RasterFormatException with the specified message.
Parameters:
s - the message to generate when a RasterFormatException is thrown
Usages and Demos :

View More Examples of RasterFormatException(String s)
   1:         }
   2:         throw new RasterFormatException(ERROR);
   3:     }
   4:         ...
   5:         }
   6:         throw new RasterFormatException(ERROR);
   7:     }
   8:         ...
   9:         }
  10:         throw new RasterFormatException(ERROR);
  11:     }

View Full Code Here
   1:         }
   2:         throw new RasterFormatException(ERROR);
   3:     }
   4:         ...
   5:         }
   6:         throw new RasterFormatException(ERROR);
   7:     }
   8:         ...
   9:         }
  10:         throw new RasterFormatException(ERROR);
  11:     }

View Full Code Here
   1:         if (categories.length != image.getSampleModel().getNumBands()) {
   2:             throw new RasterFormatException(String.valueOf(categories.length));
   3:         }
   4:         permitInPlaceOperation();
   5:     }

View Full Code Here
   1:         if (categories.length != image.getSampleModel().getNumBands()) {
   2:             throw new RasterFormatException(String.valueOf(categories.length));
   3:         }
   4:         permitInPlaceOperation();
   5:     }

View Full Code Here
   1:             case DataBuffer.TYPE_DOUBLE: Arrays.fill(((DataBufferDouble)buffer).getData(bank),(double)value); break;
   2:             default: throw new RasterFormatException(String.valueOf(buffer));
   3:         }
   4:     }

View Full Code Here