Package javax.media.jai.util

Examples of javax.media.jai.util.ImagingException


    private void sendExceptionToListener(String message, Exception e) {
        ImagingListener listener =
            ImageUtil.getImagingListener((RenderingHints)null);
        listener.errorOccurred(message,
                               new ImagingException(message, e),
                               this, false);
    }
View Full Code Here


  } catch (IOException ioe) {
            ImagingListener listener =
                JAI.getDefaultInstance().getImagingListener();
            String message = JaiI18N.getString("OperationRegistry2");
            listener.errorOccurred(message,
                                   new ImagingException(message, ioe),
                                   OperationRegistry.class, false);
            return null;

//      ioe.printStackTrace();
//      throw new RuntimeException(
View Full Code Here

//    e.printStackTrace();
      }
  }

        if (savedOne != null)
            throw new ImagingException(JaiI18N.getString("OperationRegistry7")+
                                       " \""+descriptorName+"\"",
                                       savedOne);

  return null;
    }
View Full Code Here

        try {
            this.i_transform = transform.createInverse();
        } catch (java.awt.geom.NoninvertibleTransformException e) {
            String message = JaiI18N.getString("MlibAffineOpImage0");
            listener.errorOccurred(message,
                                   new ImagingException(message, e),
                                   this,
                                   false);
//            throw new RuntimeException(JaiI18N.getString("MlibAffineOpImage0"));
        }
        this.transform = (AffineTransform)transform.clone();
View Full Code Here

            URL url = new URL(spec.toString());
            stream = url.openStream();
        } catch(Exception e) {
            String message =
                JaiI18N.getString("IIPResolution4") + spec.toString();
            listener.errorOccurred(message, new ImagingException(message, e),
                                   IIPResolutionOpImage.class, false);
//            throw new RuntimeException(e.getClass()+" "+e.getMessage());
        }

        return stream;
View Full Code Here

                charsAppended = true;
            }
        } catch(Exception e) {
            String message =
                JaiI18N.getString("IIPResolution5");
            listener.errorOccurred(message, new ImagingException(message, e),
                                   IIPResolutionOpImage.class, false);
//            throw new RuntimeException(e.getClass()+" "+e.getMessage());
        }

        return charsAppended ? buf.toString().toLowerCase() : null;
View Full Code Here

            try {
                stream.read(b);
            } catch(Exception e) {
                String message =
                    JaiI18N.getString("IIPResolution6");
                listener.errorOccurred(message, new ImagingException(message,e),
                                       IIPResolutionOpImage.class, false);
//                throw new RuntimeException(e.getClass()+" "+e.getMessage());
            }
            String msg = new String(b);
            if(throwException) {
View Full Code Here

            stream.read(b);
            stream.read(); // CR
            stream.read(); // LF
        } catch(Exception e) {
            String message = JaiI18N.getString("IIPResolution7");
            listener.errorOccurred(message, new ImagingException(message,e),
                                   IIPResolutionOpImage.class, false);
//            throw new RuntimeException(e.getClass()+" "+e.getMessage());
        }

        return b;
View Full Code Here

                stream.read(); // CR
                stream.read(); // LF
                str = new String(b);
            } catch(Exception e) {
                String message = JaiI18N.getString("IIPResolution7");
                listener.errorOccurred(message, new ImagingException(message,e),
                                       IIPResolutionOpImage.class, false);
//                throw new RuntimeException(e.getClass()+" "+e.getMessage());
            }
        } else {
            StringBuffer buf = new StringBuffer(16);
            try {
                int i;
                while((i = stream.read()) != -1) {
                    char c = (char)(0x000000ff&i);
                    if(c == CR) { // if last byte was CR
                        stream.read(); // LF
                        break;
                    }
                    buf.append(c);
                }
                str = buf.toString();
            } catch(Exception e) {
                String message = JaiI18N.getString("IIPResolution7");
                listener.errorOccurred(message, new ImagingException(message,e),
                                       IIPResolutionOpImage.class, false);
//                throw new RuntimeException(e.getClass()+" "+e.getMessage());
            }
        }
View Full Code Here

                    stream.read(); // CR
                    stream.read(); // LF
                }
            } catch(Exception e) {
                String message = JaiI18N.getString("IIPResolution8");
                listener.errorOccurred(message, new ImagingException(message,e),
                                       IIPResolutionOpImage.class, false);
//                throw new RuntimeException(e.getClass()+" "+e.getMessage());
            }
        } else {
            try {
                int i;
                while((i = stream.read()) != -1) {
                    if((char)(0x000000ff&i) == CR) { // if last byte was CR
                        stream.read(); // LF
                        break;
                    }
                }
            } catch(Exception e) {
                String message = JaiI18N.getString("IIPResolution8");
                listener.errorOccurred(message, new ImagingException(message,e),
                                       IIPResolutionOpImage.class, false);
//                throw new RuntimeException(e.getClass()+" "+e.getMessage());
            }
        }
    }
View Full Code Here

TOP

Related Classes of javax.media.jai.util.ImagingException

Copyright © 2018 www.massapicom. 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.