org.jnetstream.capture
Class FileFormatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by org.jnetstream.capture.FileFormatException
All Implemented Interfaces:
java.io.Serializable

public class FileFormatException
extends java.io.IOException

Thrown when Invalid format has been encountered in the capture file.

The exception can also provide additional information about the file and exactly the position within the file that the invalid format was encountered.

Author:
Mark Bednarczyk, Sly Technologies, Inc.
See Also:
Serialized Form

Constructor Summary
FileFormatException()
           
FileFormatException(java.lang.String message)
           
FileFormatException(java.lang.String message, java.io.File file, long position)
           
 
Method Summary
 java.io.File getFile()
          File that the invalid format was encountered in.
 long getPosition()
          The position within the file where the invalid format was encountred.
 java.lang.String toString()
           
 
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

FileFormatException

public FileFormatException()

FileFormatException

public FileFormatException(java.lang.String message)
Parameters:
message -

FileFormatException

public FileFormatException(java.lang.String message,
                           java.io.File file,
                           long position)
Method Detail

getFile

public java.io.File getFile()
File that the invalid format was encountered in.

Returns:
Returns the file.

getPosition

public long getPosition()
The position within the file where the invalid format was encountred.

Returns:
Returns the position.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable