|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
com.flagstone.transform.FSCoderException
public class FSCoderException
This exception is thrown when parse errors are encountered. ParseExceptions contain information about the error that prevented a file from being read and decoded.
Constructor Summary | |
---|---|
FSCoderException(int type,
int start,
int length,
int delta,
java.lang.String message)
Constructs an FSCoderException to report where a problem occurred when encoding or decoding a Flash (.swf) file. |
Method Summary | |
---|---|
int |
getDelta()
The difference between the calculated number of bytes and the actual number of bytes when the object was encoded or decoded. |
int |
getLength()
The calculated number of bytes the object will occupy when encoded. |
int |
getStart()
The byte address of the start of the object in the file being decoded. |
int |
getType()
Returns the type identifying the FSMovieObject or FSActionObject that caused the error. |
java.lang.String |
toString()
Return a description of the error. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FSCoderException(int type, int start, int length, int delta, java.lang.String message)
type
- the type of object or action that was being encoded/decoded
when the problem occurred.start
- the address in the file where the data structure being
encoded/decoded is located. This is only valid for files being
decoded since the encoded file will not be written if an
exception occurs.length
- the size in bytes that the data structure should take when
encoded.delta
- the difference between the actual number of byes and the
expected length. This is negative for underflow errors and
positive when the takes more bytes to encode/decode that the
expected length.message
- a message indicating the type of error - overflow or
underflow.Method Detail |
---|
public int getType()
public int getStart()
public int getLength()
public int getDelta()
public java.lang.String toString()
toString
in class java.lang.Throwable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |