java > java.nio > java.nio.channels > java.nio.channels.filechannel >

Class: java.nio.channels.FileChannel
    java.lang.Object
       java.nio.channels.spi.AbstractInterruptibleChannel
               java.nio.channels.FileChannel


public abstract class FileChannel extends AbstractInterruptibleChannel implements ByteChannel, GatheringByteChannel, ScatteringByteChannel

Inner Class(es): FileChannel.MapMode

FIELDS:

CONSTRUCTORS:
protected FileChannel()


METHODS:
public abstract void force(boolean metaData)
Throws: ClosedChannelException
Throws: IOException

public final FileLock lock()
Throws: ClosedChannelException
Throws: AsynchronousCloseException
Throws: FileLockInterruptionException
Throws: OverlappingFileLockException
Throws: NonWritableChannelException
Throws: IOException

public abstract FileLock lock(long position, long size, boolean shared)
Throws: IllegalArgumentException
Throws: ClosedChannelException
Throws: AsynchronousCloseException
Throws: FileLockInterruptionException
Throws: OverlappingFileLockException
Throws: NonReadableChannelException
Throws: NonWritableChannelException
Throws: IOException

public abstract MappedByteBuffer map(FileChannel.MapMode mode, long position, long size)
Throws: NonReadableChannelException
Throws: NonWritableChannelException
Throws: IllegalArgumentException
Throws: IOException

public abstract long position()
Throws: ClosedChannelException
Throws: IOException

public abstract FileChannel position(long newPosition)
Throws: ClosedChannelException
Throws: IllegalArgumentException
Throws: IOException

public abstract int read(ByteBuffer dst)
Throws: ClosedChannelException
Throws: AsynchronousCloseException
Throws: ClosedByInterruptException
Throws: IOException

public abstract int read(ByteBuffer dst, long position)
Throws: IllegalArgumentException
Throws: NonReadableChannelException
Throws: ClosedChannelException
Throws: AsynchronousCloseException
Throws: ClosedByInterruptException
Throws: IOException

public final long read(ByteBuffer[] dsts)
Throws: ClosedChannelException
Throws: AsynchronousCloseException
Throws: ClosedByInterruptException
Throws: IOException

public abstract long read(ByteBuffer[] dsts, int offset, int length)
Throws: ClosedChannelException
Throws: AsynchronousCloseException
Throws: ClosedByInterruptException
Throws: IOException

public abstract long size()
Throws: ClosedChannelException
Throws: IOException

public abstract long transferFrom(ReadableByteChannel src, long position, long count)
Throws: IllegalArgumentException
Throws: NonReadableChannelException
Throws: NonWritableChannelException
Throws: ClosedChannelException
Throws: AsynchronousCloseException
Throws: ClosedByInterruptException
Throws: IOException

public abstract long transferTo(long position, long count, WritableByteChannel target)
Throws: IllegalArgumentException
Throws: NonReadableChannelException
Throws: NonWritableChannelException
Throws: ClosedChannelException
Throws: AsynchronousCloseException
Throws: ClosedByInterruptException
Throws: IOException

public abstract FileChannel truncate(long size)
Throws: NonWritableChannelException
Throws: ClosedChannelException
Throws: IllegalArgumentException
Throws: IOException

public final FileLock tryLock()
Throws: ClosedChannelException
Throws: OverlappingFileLockException
Throws: IOException

public abstract FileLock tryLock(long position, long size, boolean shared)
Throws: IllegalArgumentException
Throws: ClosedChannelException
Throws: OverlappingFileLockException
Throws: IOException

public abstract int write(ByteBuffer src)
Throws: ClosedChannelException
Throws: AsynchronousCloseException
Throws: ClosedByInterruptException
Throws: IOException

public abstract int write(ByteBuffer src, long position)
Throws: IllegalArgumentException
Throws: NonWritableChannelException
Throws: ClosedChannelException
Throws: AsynchronousCloseException
Throws: ClosedByInterruptException
Throws: IOException

public final long write(ByteBuffer[] srcs)
Throws: ClosedChannelException
Throws: AsynchronousCloseException
Throws: ClosedByInterruptException
Throws: IOException

public abstract long write(ByteBuffer[] srcs, int offset, int length)
Throws: ClosedChannelException
Throws: AsynchronousCloseException
Throws: ClosedByInterruptException
Throws: IOException


INHERITED METHODS:
close(), implCloseChannel(), isOpen(), begin(), end(boolean), getClass(), hashCode(), equals(java.lang.Object), clone(), toString(), notify(), notifyAll(), wait(long), wait(long, int), wait(), finalize(),

SUBCLASSES:





Yazilar kaynak gosterilmeden kopyalanamaz © www.kodcu.net