com.faunos.util.io
Class WorkAroundFileChannel
java.lang.Object
java.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.FileChannel
com.faunos.util.io.FilterFileChannel
com.faunos.util.io.WorkAroundFileChannel
- All Implemented Interfaces:
- Closeable, ByteChannel, Channel, GatheringByteChannel, InterruptibleChannel, ReadableByteChannel, ScatteringByteChannel, WritableByteChannel
public class WorkAroundFileChannel
- extends FilterFileChannel
It's come to this… standardizing on a workaround interface for coping with
outstanding bugs surrounding FileChannel
implementations.
- Author:
- Babak Farhang
Methods inherited from class com.faunos.util.io.FilterFileChannel |
checkReadAccess, checkWriteAccess, force, implCloseChannel, implCreateFileLock, lock, map, position, position, read, read, read, size, transferTo, truncate, tryLock, write, write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkAroundFileChannel
public WorkAroundFileChannel(FileChannel inner)
- Creates a new wrapping instance using the given (buggy)
inner
FileChannel
implementation.
transferFrom
public long transferFrom(ReadableByteChannel src,
long position,
long count)
throws IOException
- Overrides:
transferFrom
in class FilterFileChannel
- Throws:
IOException
- See Also:
- Google bug search