org.jnetstream.capture
Class FileFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
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
|
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 |
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)
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