FileRegion Type — netty Architecture
Architecture documentation for the FileRegion type/interface in FileRegion.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD bb060140_2a3f_faf5_9285_b6500c18b88c["FileRegion"] b6fe1227_a66c_e666_cc94_cd084cb2ea88["FileRegion.java"] bb060140_2a3f_faf5_9285_b6500c18b88c -->|defined in| b6fe1227_a66c_e666_cc94_cd084cb2ea88 style bb060140_2a3f_faf5_9285_b6500c18b88c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/FileRegion.java lines 53–101
public interface FileRegion extends ReferenceCounted {
/**
* Returns the offset in the file where the transfer began.
*/
long position();
/**
* Returns the bytes which was transferred already.
*
* @deprecated Use {@link #transferred()} instead.
*/
@Deprecated
long transfered();
/**
* Returns the bytes which was transferred already.
*/
long transferred();
/**
* Returns the number of bytes to transfer.
*/
long count();
/**
* Transfers the content of this file region to the specified channel.
*
* @param target the destination of the transfer
* @param position the relative offset of the file where the transfer
* begins from. For example, <tt>0</tt> will make the
* transfer start from {@link #position()}th byte and
* <tt>{@link #count()} - 1</tt> will make the last
* byte of the region transferred.
*/
long transferTo(WritableByteChannel target, long position) throws IOException;
@Override
FileRegion retain();
@Override
FileRegion retain(int increment);
@Override
FileRegion touch();
@Override
FileRegion touch(Object hint);
}
Source
Frequently Asked Questions
What is the FileRegion type?
FileRegion is a type/interface in the netty codebase, defined in transport/src/main/java/io/netty/channel/FileRegion.java.
Where is FileRegion defined?
FileRegion is defined in transport/src/main/java/io/netty/channel/FileRegion.java at line 53.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free