Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/keenwrite.git

Add note about stream closure

AuthorDaveJarvis <email>
Date2021-04-04 10:21:18 GMT-0700
Commitaee09ca0caf7c79831ff64db91bf5ca7bd525ec5
Parentcd4692f
src/main/java/com/keenwrite/io/StreamMediaType.java
/**
* Convenience method to return the probed media type for the given
- * {@link InputStream} instance.
+ * {@link InputStream} instance. The caller is responsible for closing
+ * the stream.
*
* @param is Data source to ascertain the {@link MediaType}.
Delta2 lines added, 1 line removed, 1-line increase