java.lang.Object
jakarta.mail.util.SharedFileInputStream.SharedFile
- Enclosing class:
- SharedFileInputStream
A shared class that keeps track of the references
to a particular file so it can be closed when the
last reference is gone.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
cnt
private int cnt -
in
-
-
Constructor Details
-
SharedFile
SharedFile(String file) throws IOException - Throws:
IOException
-
SharedFile
SharedFile(File file) throws IOException - Throws:
IOException
-
-
Method Details
-
open
-
close
- Throws:
IOException
-
finalize
-