com.github.gcf.io
Class AbstractConnection

java.lang.Object
  extended by com.github.gcf.io.AbstractConnection
All Implemented Interfaces:
Connection

public abstract class AbstractConnection
extends Object
implements Connection

Author:
Marcel Patzlaff

Nested Class Summary
protected  class AbstractConnection.RegisteredInputStream
           
protected  class AbstractConnection.RegisteredOutputStream
           
 
Field Summary
protected  boolean closed
           
 
Constructor Summary
AbstractConnection()
           
 
Method Summary
 void close()
           
protected  void closeMainResource()
           
protected  void ensureOpen()
           
protected  void resourceAcquired(Object resource)
           
protected  void resourceReleased(Object resource)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

closed

protected boolean closed
Constructor Detail

AbstractConnection

public AbstractConnection()
Method Detail

close

public final void close()
                 throws IOException
Specified by:
close in interface Connection
Throws:
IOException

ensureOpen

protected void ensureOpen()
                   throws IOException
Throws:
IOException

resourceAcquired

protected final void resourceAcquired(Object resource)

resourceReleased

protected final void resourceReleased(Object resource)
                               throws IOException
Throws:
IOException

closeMainResource

protected void closeMainResource()
                          throws IOException
Throws:
IOException


Copyright © 2007-2010. All Rights Reserved.