public class FilenameFileRegion extends DefaultFileRegion
构造器和说明 |
---|
FilenameFileRegion(java.io.File file,
java.nio.channels.FileChannel channel) |
FilenameFileRegion(java.io.File file,
java.nio.channels.FileChannel channel,
long position,
long remainingBytes) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getFilename()
Provides an absolute filename for the underlying FileChannel.
|
getFileChannel, getPosition, getRemainingBytes, getWrittenBytes, update
public FilenameFileRegion(java.io.File file, java.nio.channels.FileChannel channel) throws java.io.IOException
java.io.IOException
public FilenameFileRegion(java.io.File file, java.nio.channels.FileChannel channel, long position, long remainingBytes)
public java.lang.String getFilename()
FileRegion
getFilename
在接口中 FileRegion
getFilename
在类中 DefaultFileRegion