public class FilenameFileRegion extends DefaultFileRegion
Constructor and Description |
---|
FilenameFileRegion(File file,
FileChannel channel) |
FilenameFileRegion(File file,
FileChannel channel,
long position,
long remainingBytes) |
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) throws IOException
IOException
public FilenameFileRegion(File file, FileChannel channel, long position, long remainingBytes)
public String getFilename()
FileRegion
getFilename
in interface FileRegion
getFilename
in class DefaultFileRegion
Copyright © 2004–2014 Apache MINA Project. All rights reserved.