Package javax.media.jai.util

Examples of javax.media.jai.util.ImagingListener.errorOccurred()


        long streamPosition = Long.MIN_VALUE;
        if(canAttemptRecovery) {
            try {
                streamPosition = src.getFilePointer();
            } catch(IOException ioe) {
                listener.errorOccurred(JaiI18N.getString("StreamRIF1"),
                                       ioe, this, false);
                // Unset the recovery attempt flag but otherwise
                // ignore the exception.
                canAttemptRecovery = false;
            }
View Full Code Here


                        src.seek(streamPosition);

                        // Retry image decoding.
                        im = dec.decodeAsRenderedImage();
                    } catch (IOException ioe) {
                        listener.errorOccurred(JaiI18N.getString("StreamRIF2"),
                                               ioe, this, false);
                        im = null;
                    }
                } else {
                    String message = JaiI18N.getString("CodecRIFUtil0");
View Full Code Here

                                               ioe, this, false);
                        im = null;
                    }
                } else {
                    String message = JaiI18N.getString("CodecRIFUtil0");
                    listener.errorOccurred(message,
                                           new ImagingException(message,
                                                                memoryError),
                                           this, false);
                    // Re-throw the error.
//                    throw memoryError;
View Full Code Here

                                           this, false);
                    // Re-throw the error.
//                    throw memoryError;
                }
            } catch (IOException e) {
                listener.errorOccurred(JaiI18N.getString("StreamRIF2"),
                                       e, this, false);
                im = null;
            }

            // If decoding succeeded, wrap the result in an OpImage.
View Full Code Here

            listener =
                (ImagingListener)renderingHints.get(JAI.KEY_IMAGING_LISTENER);

        if (listener == null)
            listener = JAI.getDefaultInstance().getImagingListener();
        listener.errorOccurred(message, e, this, false);
    }
}
View Full Code Here

                    } catch (Exception e) {
                        ImagingListener listener =
                            ImageUtil.getImagingListener(renderHints);
                        String message =
                            JaiI18N.getString("CRIFImpl0") + operationName;
                        listener.errorOccurred(message, e, this, false);
//                        e.printStackTrace();
                    }
                }
                return rendering;
            }
View Full Code Here

/*  64 */     ImagingListener listener = ImageUtil.getImagingListener(renderHints);
/*  65 */     SeekableStream src = (SeekableStream)paramBlock.getObjectParameter(0);
/*     */     try {
/*  67 */       src.seek(0L);
/*     */     } catch (IOException e) {
/*  69 */       listener.errorOccurred(JaiI18N.getString("StreamRIF0"), e, this, false);
/*     */
/*  72 */       return null;
/*     */     }
/*     */
/*  75 */     ImageDecodeParam param = null;
View Full Code Here

/* 124 */     long streamPosition = -9223372036854775808L;
/* 125 */     if (canAttemptRecovery) {
/*     */       try {
/* 127 */         streamPosition = src.getFilePointer();
/*     */       } catch (IOException ioe) {
/* 129 */         listener.errorOccurred(JaiI18N.getString("StreamRIF1"), ioe, this, false);
/*     */
/* 133 */         canAttemptRecovery = false;
/*     */       }
/*     */
/*     */     }
View Full Code Here

/*     */           {
/* 160 */             src.seek(streamPosition);
/*     */
/* 163 */             im = dec.decodeAsRenderedImage();
/*     */           } catch (IOException ioe) {
/* 165 */             listener.errorOccurred(JaiI18N.getString("StreamRIF2"), ioe, this, false);
/*     */
/* 167 */             im = null;
/*     */           }
/*     */         } else {
/* 170 */           String message = JaiI18N.getString("CodecRIFUtil0");
View Full Code Here

/*     */
/* 167 */             im = null;
/*     */           }
/*     */         } else {
/* 170 */           String message = JaiI18N.getString("CodecRIFUtil0");
/* 171 */           listener.errorOccurred(message, new ImagingException(message, memoryError), this, false);
/*     */         }
/*     */
/*     */       }
/*     */       catch (IOException e)
/*     */       {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.