public InputCapture<? extends CapturePacket> newInput(final File file,
final Filter<ProtocolFilterTarget> filter) throws IOException {
final BufferedInputStream b =
new BufferedInputStream(new FileInputStream(file));
b.mark(1024); // Buffer first 1K of stream so we can rewind
/*
* Check the stream, without decompression first
*/
if (formatType(Channels.newChannel(b)) != null) {