Package javax.mail.util
Class SharedFileInputStream.SharedFile
- java.lang.Object
-
- javax.mail.util.SharedFileInputStream.SharedFile
-
- Enclosing class:
- SharedFileInputStream
static class SharedFileInputStream.SharedFile extends java.lang.Object
A shared class that keeps track of the references to a particular file so it can be closed when the last reference is gone.
-
-
Constructor Summary
Constructors Constructor Description SharedFile(java.io.File file)
SharedFile(java.lang.String file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected void
finalize()
void
forceClose()
java.io.RandomAccessFile
open()
-
-
-
Method Detail
-
open
public java.io.RandomAccessFile open()
-
close
public void close() throws java.io.IOException
- Throws:
java.io.IOException
-
forceClose
public void forceClose() throws java.io.IOException
- Throws:
java.io.IOException
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
-