Code example for FileChannel

Methods: size, transferTo

0
     */ 
    public NFileEntity(final File file, final ContentType contentType) {
        this(file, contentType, true);
    } 
 
    /** 
     * @deprecated (4.2) use {@link #NFileEntity(File, ContentType, boolean)} 
     */ 
    @Deprecated 
    public NFileEntity(final File file, final String contentType, final boolean useFileChannels) {
        Args.notNull(file, "File");
        this.file = file;
        this.useFileChannels = useFileChannels;
        setContentType(contentType);
    } 
 
    /** 
     * @deprecated (4.2) use {@link #NFileEntity(File, ContentType)} 
     */ 
    @Deprecated 
    public NFileEntity(final File file, final String contentType) {