JIU 0.12.0 Homepage

net.sourceforge.jiu.codecs
Class WrongFileFormatException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bynet.sourceforge.jiu.ops.OperationFailedException
              extended bynet.sourceforge.jiu.codecs.WrongFileFormatException
All Implemented Interfaces:
Serializable

public class WrongFileFormatException
extends OperationFailedException

This exception is thrown during image loading. If a codec is sure that the file or input stream that was given to it is not in the format supported by that codec, an instance of this exception class is thrown. This is usually the case if the magic byte sequence of that format is not found at the beginning of the stream.

If there were errors during loading because of file corruption, an InvalidFileStructureException should be thrown.

If the format is recognized but cannot be loaded because the codec does not fully support the file format, a UnsupportedTypeException should be thrown.

Author:
Marco Schmidt
See Also:
InvalidFileStructureException, UnsupportedTypeException, Serialized Form

Constructor Summary
WrongFileFormatException(String message)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WrongFileFormatException

public WrongFileFormatException(String message)

JIU 0.12.0 Homepage

Copyright © 2000, 2001, 2002, 2003, 2004 Marco Schmidt