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, update
public 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 FileRegion
getFilename
in class DefaultFileRegion
Copyright © 2004–2021 Apache MINA Project. All rights reserved.