|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jnetpcap.packet.format.JFormatter
org.jnetpcap.packet.format.TextFormatter
public class TextFormatter
Formatter that formats packet content for human readable output. This class produces pretty text based output by reading field objects from the header.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jnetpcap.packet.format.JFormatter |
|---|
JFormatter.Detail, JFormatter.Priority, JFormatter.Style |
| Field Summary |
|---|
| Fields inherited from class org.jnetpcap.packet.format.JFormatter |
|---|
frameIndex, out |
| Constructor Summary | |
|---|---|
TextFormatter()
Instantiates a new text formatter. |
|
TextFormatter(java.lang.Appendable out)
Creates a test formatter which send its output to an appendable output device. |
|
TextFormatter(java.lang.StringBuilder out)
Creates a text formatter which sends its output to a string buffer. |
|
| Method Summary | |
|---|---|
protected void |
fieldAfter(JHeader header,
JField field,
JFormatter.Detail detail)
Field after. |
protected void |
fieldBefore(JHeader header,
JField field,
JFormatter.Detail detail)
Field before. |
protected void |
headerAfter(JHeader header,
JFormatter.Detail detail)
Header after. |
protected void |
headerBefore(JHeader header,
JFormatter.Detail detail)
Header before. |
void |
packetAfter(JPacket packet,
JFormatter.Detail detail)
Packet after. |
void |
packetBefore(JPacket packet,
JFormatter.Detail detail)
Packet before. |
protected void |
packetNull(JPacket packet,
JFormatter.Detail detail)
Packet null. |
protected void |
subHeaderAfter(JHeader header,
JHeader subHeader,
JFormatter.Detail detail)
Sub header after. |
protected void |
subHeaderBefore(JHeader header,
JHeader subHeader,
JFormatter.Detail detail)
Sub header before. |
| Methods inherited from class org.jnetpcap.packet.format.JFormatter |
|---|
decLevel, fieldNull, format, format, format, format, format, format, format, format, getDefault, headerNull, incLevel, incLevel, incLevel, pad, printf, println, reset, setDefault, setDefaultDisplayPayload, setDefaultResolveAddress, setDetail, setDetail, setDisplayPayload, setFrameIndex, setOutput, setOutput, setResolveAddresses, stylizeMultiLine, stylizeMultiLine, stylizeSingleLine, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextFormatter()
public TextFormatter(java.lang.Appendable out)
out - where to send outputpublic TextFormatter(java.lang.StringBuilder out)
out - buffer where to send output| Method Detail |
|---|
protected void fieldAfter(JHeader header,
JField field,
JFormatter.Detail detail)
throws java.io.IOException
fieldAfter in class JFormatterheader - the headerfield - the fielddetail - the detail
java.io.IOException - Signals that an I/O exception has occurred.JFormatter.fieldAfter(org.jnetpcap.packet.JHeader,
org.jnetpcap.packet.structure.JField,
org.jnetpcap.packet.format.JFormatter.Detail)
protected void fieldBefore(JHeader header,
JField field,
JFormatter.Detail detail)
throws java.io.IOException
fieldBefore in class JFormatterheader - the headerfield - the fielddetail - the detail
java.io.IOException - Signals that an I/O exception has occurred.JFormatter.fieldBefore(org.jnetpcap.packet.JHeader,
org.jnetpcap.packet.structure.JField,
org.jnetpcap.packet.format.JFormatter.Detail)
protected void headerAfter(JHeader header,
JFormatter.Detail detail)
throws java.io.IOException
headerAfter in class JFormatterheader - the headerdetail - the detail
java.io.IOException - Signals that an I/O exception has occurred.JFormatter.headerAfter(org.jnetpcap.packet.JHeader,
org.jnetpcap.packet.format.JFormatter.Detail)
protected void headerBefore(JHeader header,
JFormatter.Detail detail)
throws java.io.IOException
headerBefore in class JFormatterheader - the headerdetail - the detail
java.io.IOException - Signals that an I/O exception has occurred.JFormatter.headerBefore(org.jnetpcap.packet.JHeader,
org.jnetpcap.packet.format.JFormatter.Detail)
public void packetAfter(JPacket packet,
JFormatter.Detail detail)
throws java.io.IOException
packetAfter in class JFormatterpacket - the packetdetail - the detail
java.io.IOException - Signals that an I/O exception has occurred.JFormatter.packetAfter(org.jnetpcap.packet.JPacket,
org.jnetpcap.packet.format.JFormatter.Detail)
public void packetBefore(JPacket packet,
JFormatter.Detail detail)
throws java.io.IOException
packetBefore in class JFormatterpacket - the packetdetail - the detail
java.io.IOException - Signals that an I/O exception has occurred.JFormatter.packetBefore(org.jnetpcap.packet.JPacket,
org.jnetpcap.packet.format.JFormatter.Detail)
protected void packetNull(JPacket packet,
JFormatter.Detail detail)
packetNull in class JFormatterpacket - the packetdetail - the detailJFormatter.packetNull(org.jnetpcap.packet.JPacket,
org.jnetpcap.packet.format.JFormatter.Detail)
protected void subHeaderAfter(JHeader header,
JHeader subHeader,
JFormatter.Detail detail)
throws java.io.IOException
subHeaderAfter in class JFormatterheader - the headersubHeader - the sub headerdetail - the detail
java.io.IOException - Signals that an I/O exception has occurred.JFormatter.subHeaderAfter(org.jnetpcap.packet.JHeader,
org.jnetpcap.packet.JHeader,
org.jnetpcap.packet.format.JFormatter.Detail)
protected void subHeaderBefore(JHeader header,
JHeader subHeader,
JFormatter.Detail detail)
throws java.io.IOException
subHeaderBefore in class JFormatterheader - the headersubHeader - the sub headerdetail - the detail
java.io.IOException - Signals that an I/O exception has occurred.JFormatter.subHeaderBefore(org.jnetpcap.packet.JHeader,
org.jnetpcap.packet.JHeader,
org.jnetpcap.packet.format.JFormatter.Detail)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||