Class FMFileAccessController.FileAccessorFileChannel
- java.lang.Object
-
- com.biglybt.core.diskmanager.file.impl.FMFileAccessController.FileAccessorFileChannel
-
- All Implemented Interfaces:
FMFileAccess.FileAccessor
- Enclosing class:
- FMFileAccessController
public static class FMFileAccessController.FileAccessorFileChannel extends java.lang.Object implements FMFileAccess.FileAccessor
-
-
Field Summary
Fields Modifier and Type Field Description private java.nio.channels.FileChannel
fc
-
Constructor Summary
Constructors Modifier Constructor Description private
FileAccessorFileChannel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
java.nio.channels.FileChannel
getChannel()
long
getLength()
long
getPosition()
void
setLength(long len)
void
setPosition(long pos)
void
write(int b)
-
-
-
Method Detail
-
getChannel
public java.nio.channels.FileChannel getChannel()
- Specified by:
getChannel
in interfaceFMFileAccess.FileAccessor
-
getLength
public long getLength() throws java.io.IOException
- Specified by:
getLength
in interfaceFMFileAccess.FileAccessor
- Throws:
java.io.IOException
-
setLength
public void setLength(long len) throws java.io.IOException
- Specified by:
setLength
in interfaceFMFileAccess.FileAccessor
- Throws:
java.io.IOException
-
getPosition
public long getPosition() throws java.io.IOException
- Specified by:
getPosition
in interfaceFMFileAccess.FileAccessor
- Throws:
java.io.IOException
-
setPosition
public void setPosition(long pos) throws java.io.IOException
- Specified by:
setPosition
in interfaceFMFileAccess.FileAccessor
- Throws:
java.io.IOException
-
write
public void write(int b) throws java.io.IOException
- Specified by:
write
in interfaceFMFileAccess.FileAccessor
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfaceFMFileAccess.FileAccessor
- Throws:
java.io.IOException
-
-