@Test public void normalizeOPTRecord() throws IOException { OPTRecord record = new OPTRecord(4096, 0, 0, 32768); assertEquals(". 32768 CLASS4096 OPT ; payload 4096, xrcode 0, version 0, flags 32768", pcapReader.normalizeRecordString(record.toString())); }
protected String normalizeRecordString(String recordString) { if (recordString == null) return null; recordString = recordString.replaceAll("\\s{2,}", " "); recordString = recordString.replaceAll("\\t{1,}", " "); return recordString; }
DnsPcapReader extends PcapReader { protected String normalizeRecordString(String recordString) { if (recordString == null) return null; recordString = recordString.replaceAll("\\s{2,}", " "); recordString = recordString.replaceAll("\\t{1,}", " "); return recordString; } }
DnsPcapReader extends PcapReader { protected String normalizeRecordString(String recordString) { if (recordString == null) return null; recordString = recordString.replaceAll("\\s{2,}", " "); recordString = recordString.replaceAll("\\t{1,}", " "); return recordString; } DnsPcapReader(DataInputStream is); }
DnsPcapReader extends PcapReader { protected String normalizeRecordString(String recordString) { if (recordString == null) return null; recordString = recordString.replaceAll("\\s{2,}", " "); recordString = recordString.replaceAll("\\t{1,}", " "); return recordString; } DnsPcapReader(DataInputStream is);  }
DnsPcapReader extends PcapReader { protected String normalizeRecordString(String recordString) { if (recordString == null) return null; recordString = recordString.replaceAll("\\s{2,}", " "); recordString = recordString.replaceAll("\\t{1,}", " "); return recordString; } DnsPcapReader(DataInputStream is);  static final int DNS_PORT; }