Motivation:

Make the FileRegion comments about which transports are supported more accurate.
Also, eleminate any outstanding references to FileRegion.transfered as the method was renamed for spelling.

Modifications:

Class-level comment on FileRegion, can call renamed method.

Result:

More accurate documentation and less calls to deprecated methods.
This commit is contained in:
Jason Brown 2017-03-06 10:17:03 -08:00 committed by Scott Mitchell
parent 743d2d374c
commit 3861b7de2b
3 changed files with 2 additions and 4 deletions

View File

@ -265,7 +265,7 @@ public class SocketFileRegionTest extends AbstractSocketTest {
@Override
@Deprecated
public long transfered() {
return region.transfered();
return region.transferred();
}
@Override

View File

@ -399,7 +399,7 @@ public abstract class AbstractEpollStreamChannel extends AbstractEpollChannel im
}
flushedAmount += localFlushedAmount;
if (region.transfered() >= regionCount) {
if (region.transferred() >= regionCount) {
done = true;
break;
}

View File

@ -49,8 +49,6 @@ import java.nio.channels.WritableByteChannel;
* performance. For example, sending a large file doesn't work well in Windows.
*
* <h3>Not all transports support it</h3>
*
* Currently, the NIO transport is the only transport that supports {@link FileRegion}.
*/
public interface FileRegion extends ReferenceCounted {