99100101102103104105106107108109
public void testXmlIp4RecordRouteOpt() throws IOException { JFormatter out = new XmlFormatter(OUT); JPacket packet = TestUtils.getPcapPacket("tests/test-icmp-recordroute-opt.pcap", 0); out.format(packet); } /** * Test sub header.
114115116117118119120121122
public void testSubHeader() throws IOException { JFormatter out = new TextFormatter(OUT); JPacket packet = TestUtils.getPcapPacket("tests/test-afs.pcap", 0); out.format(packet); } }
10701071107210731074107510761077107810791080
*/ public String toString() { JFormatter out = JPacket.getFormatter(); out.reset(); try { out.format(this); } catch (IOException e) { throw new IllegalStateException("Unexpected StringBuilder IO error"); } return out.toString(); }
6465666768697071
public void test1() throws IOException { JPacket packet = getPcapPacket(HTTP, 5); JFormatter out = new TextFormatter(System.out); out.format(packet); } }