public class PcapOutputStream
extends java.io.OutputStream
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static PcapOutputStream |
create(PcapGlobalHeader pcapHeader,
java.io.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. |
public static PcapOutputStream create(PcapGlobalHeader pcapHeader, java.io.OutputStream out)
public void write(Frame frame) throws java.io.IOException
Frame to the outputstream.frame - the frame to write. If null is passed in, it will silently be
ignored.java.io.IOExceptionpublic void write(Packet packet) throws java.io.IOException
Packet to the outputstream.packet - the packet to write. If null is passed in, it will silently be
ignored.java.io.IOExceptionpublic void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.OutputStreamjava.io.IOExceptionCopyright © 2018. All Rights Reserved.