< prev index next >
src/java.base/share/classes/java/io/InputStream.java
Print this page
@@ -54,10 +54,15 @@
private static final int MAX_SKIP_BUFFER_SIZE = 2048;
private static final int DEFAULT_BUFFER_SIZE = 8192;
/**
+ * Constructor for subclasses to call.
+ */
+ public InputStream() {}
+
+ /**
* Returns a new {@code InputStream} that reads no bytes. The returned
* stream is initially open. The stream is closed by calling the
* {@code close()} method. Subsequent calls to {@code close()} have no
* effect.
*
< prev index next >