com.faunos.util.io
Class CloseProtectedFileChannel

java.lang.Object
  extended by java.nio.channels.spi.AbstractInterruptibleChannel
      extended by java.nio.channels.FileChannel
          extended by com.faunos.util.io.FilterFileChannel
              extended by com.faunos.util.io.CloseProtectedFileChannel
All Implemented Interfaces:
Closeable, ByteChannel, Channel, GatheringByteChannel, InterruptibleChannel, ReadableByteChannel, ScatteringByteChannel, WritableByteChannel
Direct Known Subclasses:
SubFileChannel

public class CloseProtectedFileChannel
extends FilterFileChannel

A FilterFileChannel that does not chain the close method to the underlying file channel.

Author:
Babak Farhang
See Also:
implCloseChannel()

Nested Class Summary
 
Nested classes/interfaces inherited from class com.faunos.util.io.FilterFileChannel
FilterFileChannel.FilterFileLock
 
Nested classes/interfaces inherited from class java.nio.channels.FileChannel
FileChannel.MapMode
 
Field Summary
 
Fields inherited from class com.faunos.util.io.FilterFileChannel
inner
 
Constructor Summary
CloseProtectedFileChannel(FileChannel inner)
           
 
Method Summary
protected  void implCloseChannel()
          Does nothing.
 
Methods inherited from class com.faunos.util.io.FilterFileChannel
checkReadAccess, checkWriteAccess, force, implCreateFileLock, lock, map, position, position, read, read, read, size, transferFrom, transferTo, truncate, tryLock, write, write, write
 
Methods inherited from class java.nio.channels.FileChannel
lock, read, tryLock, write
 
Methods inherited from class java.nio.channels.spi.AbstractInterruptibleChannel
begin, close, end, isOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.nio.channels.Channel
close, isOpen
 
Methods inherited from interface java.nio.channels.Channel
close, isOpen
 
Methods inherited from interface java.nio.channels.Channel
close, isOpen
 
Methods inherited from interface java.nio.channels.Channel
close, isOpen
 

Constructor Detail

CloseProtectedFileChannel

public CloseProtectedFileChannel(FileChannel inner)
Method Detail

implCloseChannel

protected void implCloseChannel()
                         throws IOException
Does nothing.

Overrides:
implCloseChannel in class FilterFileChannel
Throws:
IOException


SourceForge.net Logo