/** * Instantiates a new pcap byte output stream. * * @param baos * the baos * @param header * the header */ public PcapByteOutputStream(ByteArrayOutputStream baos, GlobalHeader header) { this.baos = baos; list = new ArrayList<Byte>(); copyGlobalHeader(header); }