code: public static Pcap openStream(final InputStream is) throws IOException {
          final Buffer stream = Buffers.wrap(is);
          final PcapGlobalHeader header = PcapGlobalHeader.parse(stream);
          return new Pcap(header, stream);
      }
docs: Capture packets from the input stream
  
  @param is
  @return
  @throws IOException