Package net.sourceforge.jiu.ops

Examples of net.sourceforge.jiu.ops.MissingParameterException


    MissingParameterException,
    WrongParameterException
  {
    if (in == null)
    {
      throw new MissingParameterException("Missing input image.");
    }
    PixelImage out = getOutputImage();
    if (out == null)
    {
      setOutputImage(in.createCompatibleImage(in.getWidth(), in.getHeight()));
View Full Code Here


    MissingParameterException,
    WrongParameterException
  {
    if (in == null)
    {
      throw new MissingParameterException("Missing input image.");
    }
    Palette palette = null;
    if (in instanceof BilevelImage)
    {
      palette = new Palette(2, 255);
View Full Code Here

    MissingParameterException,
    WrongParameterException
  {
    if (in == null)
    {
      throw new MissingParameterException("Missing input image.");
    }
    if (!
         (
          (in instanceof BilevelImage) ||
          (in instanceof Paletted8Image) ||
View Full Code Here

    {
      mode = CodecMode.SAVE;
    }
    else
    {
      throw new MissingParameterException("No streams or files available.");
    }
  }
View Full Code Here

      {
        load();
      }
      else
      {
        throw new MissingParameterException("TIFF codec must have RandomAccessFile object opened for reading.");
      }
    }
    catch (IOException ioe)
    {
      close();
View Full Code Here

    WrongParameterException
  {
    PixelImage pi = getInputImage();
    if (pi == null)
    {
      throw new MissingParameterException("Input image needed.");
    }
    if (!(pi instanceof RGB24Image))
    {
      throw new WrongParameterException("Input image must be of type RGB24Image.");
    }
View Full Code Here

    WrongFileFormatException
  {
    in = getRandomAccessFile();
    if (in == null)
    {
      throw new MissingParameterException("RandomAccessFile object needed in PCDCodec.");
    }
    if (getMode() != CodecMode.LOAD)
    {
      throw new UnsupportedTypeException("PCDCodec can only load images.");
    }
View Full Code Here

    WrongParameterException
  {
    DataInput in = getInputAsDataInput();
    if (in == null)
    {
      throw new MissingParameterException("InputStream / DataInput object is missing.");
    }
    int formMagic = in.readInt();
    if (formMagic != MAGIC_FORM)
    {
      throw new WrongFileFormatException("Cannot load image. The " +
View Full Code Here

      outWidth = new Integer(out.getWidth());
      outHeight = new Integer(out.getHeight());
    }
    if (outWidth == null)
    {
      throw new MissingParameterException("Output width has not been initialized");
    }
    if (outHeight == null)
    {
      throw new MissingParameterException("Output height has not been initialized");
    }
    PixelImage image = getInputImage();
    if (image.getWidth() == outWidth.intValue() &&
        image.getHeight() == outHeight.intValue())
    {
View Full Code Here

        in = new PushbackInputStream(is);
      }
    }
    else
    {
      throw new MissingParameterException("InputStream object required for loading.");
    }
    loadType();
    String resolutionLine = loadTextLine();
    setResolution(resolutionLine);
    setBoundsIfNecessary(width, height);
View Full Code Here

TOP

Related Classes of net.sourceforge.jiu.ops.MissingParameterException

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.