public class FilenameFileRegion extends DefaultFileRegion
| Constructor and Description |
|---|
FilenameFileRegion(java.io.File file,
java.nio.channels.FileChannel channel) |
FilenameFileRegion(java.io.File file,
java.nio.channels.FileChannel channel,
long position,
long remainingBytes) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getFilename()
Provides an absolute filename for the underlying FileChannel.
|
getFileChannel, getPosition, getRemainingBytes, getWrittenBytes, updatepublic FilenameFileRegion(java.io.File file,
java.nio.channels.FileChannel channel)
throws java.io.IOException
java.io.IOExceptionpublic FilenameFileRegion(java.io.File file,
java.nio.channels.FileChannel channel,
long position,
long remainingBytes)
public java.lang.String getFilename()
FileRegiongetFilename in interface FileRegiongetFilename in class DefaultFileRegion