Closed amoe closed 6 years ago
with-open makes sure that the FileInputStream gets closed after the message is read.
with-open
FileInputStream
(This can be a problem when reading many messages in a single JVM, you can exhaust available file descriptors.)
with-open
makes sure that theFileInputStream
gets closed after the message is read.(This can be a problem when reading many messages in a single JVM, you can exhaust available file descriptors.)