public class FilenameFileRegion extends DefaultFileRegion
| Constructor and Description |
|---|
FilenameFileRegion(File file,
FileChannel channel)
Create a new FilenameFileRegion instance
|
FilenameFileRegion(File file,
FileChannel channel,
long position,
long remainingBytes)
Create a new FilenameFileRegion instance
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFilename()
Provides an absolute filename for the underlying FileChannel.
|
getFileChannel, getPosition, getRemainingBytes, getWrittenBytes, updatepublic FilenameFileRegion(File file, FileChannel channel)
file - The file to managechannel - The channel over the filepublic FilenameFileRegion(File file, FileChannel channel, long position, long remainingBytes)
file - The file to managechannel - The channel over the fileposition - The position in teh fileremainingBytes - The remaining bytespublic String getFilename()
getFilename in interface FileRegiongetFilename in class DefaultFileRegionnull if the FileRegion
does not know the filenameCopyright © 2004–2024 Apache MINA Project. All rights reserved.