|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.xnio.WeakCloseable
public final class WeakCloseable
A Closeable that holds a weak reference to another Closeable, which can be used to close the other
without creating a strong reference to it.
| Constructor Summary | |
|---|---|
WeakCloseable(java.io.Closeable resource)
Construct a new instance. |
|
WeakCloseable(java.lang.ref.WeakReference<java.io.Closeable> resource)
Construct a new instance. |
|
| Method Summary | |
|---|---|
void |
close()
Closes this resource and releases any system resources associated with it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WeakCloseable(java.lang.ref.WeakReference<java.io.Closeable> resource)
resource - the target resourcepublic WeakCloseable(java.io.Closeable resource)
resource - the target resource| Method Detail |
|---|
public void close()
throws java.io.IOException
close in interface java.io.Closeablejava.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||