close() — netty Function Reference
Architecture documentation for the close() function in PcapWriter.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 8aedf1e4_e467_1397_540d_ff8aecfd29f4["close()"] 3b90a1f4_89b3_b3f6_603e_e2f554e8ff19["PcapWriter"] 8aedf1e4_e467_1397_540d_ff8aecfd29f4 -->|defined in| 3b90a1f4_89b3_b3f6_603e_e2f554e8ff19 style 8aedf1e4_e467_1397_540d_ff8aecfd29f4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
handler/src/main/java/io/netty/handler/pcap/PcapWriter.java lines 95–111
@Override
public void close() throws IOException {
if (pcapWriteHandler.state() == State.CLOSED) {
logger.debug("PcapWriter is already closed");
} else {
if (pcapWriteHandler.sharedOutputStream()) {
synchronized (outputStream) {
outputStream.flush();
}
} else {
outputStream.flush();
outputStream.close();
}
pcapWriteHandler.markClosed();
logger.debug("PcapWriter is now closed");
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does close() do?
close() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/pcap/PcapWriter.java.
Where is close() defined?
close() is defined in handler/src/main/java/io/netty/handler/pcap/PcapWriter.java at line 95.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free