jnetpcap.capture
Class CaptureFormatException
java.lang.Object
java.lang.Throwable
java.lang.Exception
jnetpcap.capture.CaptureFormatException
- All Implemented Interfaces:
- java.io.Serializable
public class CaptureFormatException
- extends java.lang.Exception
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 |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
CaptureFormatException
public CaptureFormatException()
CaptureFormatException
public CaptureFormatException(java.lang.String message)
- Parameters:
message -
CaptureFormatException
public CaptureFormatException(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