--- a/src/java.base/share/classes/java/net/Socket.java Tue Feb 26 08:53:16 2019 +0000
+++ b/src/java.base/share/classes/java/net/Socket.java Tue Feb 26 11:14:51 2019 +0000
@@ -949,6 +949,13 @@
return in;
}
+ /**
+ * An InputStream that delegates read/available operations to an underlying
+ * input stream. The close method is overridden to close the Socket.
+ *
+ * This class is instrumented by Java Flight Recorder (JFR) to get socket
+ * I/O events.
+ */
private static class SocketInputStream extends InputStream {
private final Socket parent;
private final InputStream in;
@@ -1012,6 +1019,13 @@
return out;
}
+ /**
+ * An OutputStream that delegates write operations to an underlying output
+ * stream. The close method is overridden to close the Socket.
+ *
+ * This class is instrumented by Java Flight Recorder (JFR) to get socket
+ * I/O events.
+ */
private static class SocketOutputStream extends OutputStream {
private final Socket parent;
private final OutputStream out;