public class PcapOutputStream extends OutputStream
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static PcapOutputStream |
create(PcapGlobalHeader pcapHeader,
OutputStream out) |
void |
flush() |
void |
write(Frame frame)
Write a
Frame to the outputstream. |
void |
write(int b) |
void |
write(Packet packet)
Write a
Packet to the outputstream. |
write, writepublic static PcapOutputStream create(PcapGlobalHeader pcapHeader, OutputStream out)
public void write(Frame frame) throws IOException
Frame to the outputstream.frame - the frame to write. If null is passed in, it will silently be
ignored.IOExceptionpublic void write(Packet packet) throws IOException
Packet to the outputstream.packet - the packet to write. If null is passed in, it will silently be
ignored.IOExceptionpublic void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOExceptionCopyright © 2021. All Rights Reserved.