Package gov.lanl.adore.djatoka.io

Examples of gov.lanl.adore.djatoka.io.FormatIOException


    ImagePlus ip;
    try {
      ip = JAIReader.read(new File(input))[0];
    } catch (Exception e) {
      logger.error(e,e);
      throw new FormatIOException(e);
    }
    return open(ip);
  }
View Full Code Here


   * @throws FormatIOException
   */
  private BufferedImage open(ImagePlus imp) throws FormatIOException {
    if (imp == null) {
      logger.error("Null ImagePlus Object.");
      throw new FormatIOException("Null ImagePlus Object.");
    }
    ImageProcessor ip = imp.getProcessor();
    int width = ip.getWidth();
    int height = ip.getHeight();
    Image img = ip.createImage();
View Full Code Here

                                        try{
                                                ios.flush();
                                                ios.close();
                                        } catch (IOException e) {
                                                logger.error(e,e);
                                                throw new FormatIOException(e);
                                        }
                                }
                        }
                }
        }
View Full Code Here

        bos = new BufferedOutputStream(os);
        encoder.compressImage(bi, bos, params);
        bos.close();
      } catch (IOException e) {
        logger.error(e,e);
        throw new FormatIOException(e);
      } catch (DjatokaException e) {
        logger.error(e,e);
        throw new FormatIOException(e);
      } catch (Exception e) {
        logger.error(e,e);
        throw new FormatIOException(e);
      }
    }
  }
View Full Code Here

    DataOutputStream out = new DataOutputStream(new BufferedOutputStream(os));
    try {
      encoder.write(out);
    } catch (IOException e) {
      logger.error(e);
      throw new FormatIOException(e);
    }
  }
View Full Code Here

          try {
            bos.flush();
            bos.close();
          } catch (IOException e) {
            logger.error(e,e);
            throw new FormatIOException(e);
          }
        }
      }
    }
  }
View Full Code Here

          try {
            bos.flush();
            bos.close();
          } catch (IOException e) {
            logger.error(e,e);
            throw new FormatIOException(e);
          }
        }
      }
    }
  }
View Full Code Here

                try {
                    ios.flush();
                    ios.close();
                } catch (IOException e) {
                    logger.error(e,e);
                    throw new FormatIOException(e);
                }
            }
        }

    }
View Full Code Here

            jpgWriter.setOutput(ImageIO.createImageOutputStream(aOutStream));
            jpgWriter.write(null, new IIOImage(aImage, null, null), iwp);
            jpgWriter.dispose();
        } catch (final IOException details) {
            throw new FormatIOException(details);
        }
    }
View Full Code Here

                bos = new BufferedOutputStream(os);
                encoder.compressImage(bi, bos, params);
                bos.close();
            } catch (IOException details) {
                LOGGER.error(details.getMessage(), details);
                throw new FormatIOException(details.getMessage(), details);
            } catch (DjatokaException details) {
                LOGGER.error(details.getMessage(), details);
                throw new FormatIOException(details.getMessage(), details);
            } catch (Exception details) {
                LOGGER.error(details.getMessage(), details);
                throw new FormatIOException(details.getMessage(), details);
            }
        }
    }
View Full Code Here

TOP

Related Classes of gov.lanl.adore.djatoka.io.FormatIOException

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.