Package net.sourceforge.jiu.ops

Examples of net.sourceforge.jiu.ops.OperationFailedException


    {
      writeStream();
    }
    catch (IOException ioe)
    {
      throw new OperationFailedException("I/O failure: " + ioe.toString());
    }
  }
View Full Code Here


      loadStream();
    }
    catch (IOException ioe)
    {
      // wrap any I/O failures in an OperationFailedException
      throw new OperationFailedException("I/O failure: " + ioe.toString());
    }
  }
View Full Code Here

    IOException,
    OperationFailedException
  {
    if ((getBoundsX1() % 8) != 0)
    {
      throw new OperationFailedException("When loading bilevel images, horizontal X1 bounds must be a multiple of 8; got " + getBoundsX1());
    }
    BilevelImage image = (BilevelImage)getImage();
    int imageBytesPerRow = (imageWidth + 7) / 8;
    int bytesPerRow = imageBytesPerRow;
    int mod = bytesPerRow % 4;
View Full Code Here

    {
      writeStream();
    }
    catch (IOException ioe)
    {
      throw new OperationFailedException("I/O failure: " + ioe.toString());
    }
  }
View Full Code Here

        readMarker(jpegData, marker, length);
      }
    }
    catch (IOException ioe)
    {
      throw new OperationFailedException("Error reading from input.");
    }
    finally
    {
      close();
    }
View Full Code Here

      load();
    }
    else
    if (getMode() == CodecMode.SAVE)
    {
      throw new OperationFailedException("Saving is not supported.");
    }
    else
    {
      throw new OperationFailedException("Unsupported codec mode.");
    }
  }
View Full Code Here

        throw new WrongParameterException("Could find neither objects for loading nor for saving.");
      }
    }
    catch (IOException ioe)
    {
      throw new OperationFailedException("I/O error in Palm codec: " + ioe.toString());
    }
  }
View Full Code Here

        }
        load();
      }
      else
      {
        throw new OperationFailedException("Only loading is supported in PSD codec.");
      }
    }
    catch (IOException ioe)
    {
      throw new OperationFailedException("I/O error: " + ioe.toString());
    }
  }
View Full Code Here

TOP

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

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.