org.apache.http.nio.entity
Class FileNIOEntity

java.lang.Object
  extended by org.apache.http.entity.AbstractHttpEntity
      extended by org.apache.http.entity.FileEntity
          extended by org.apache.http.nio.entity.FileNIOEntity
All Implemented Interfaces:
java.lang.Cloneable, org.apache.http.HttpEntity, HttpNIOEntity

Deprecated.

@Deprecated
public class FileNIOEntity
extends org.apache.http.entity.FileEntity
implements HttpNIOEntity

An entity whose content is retrieved from from a file. In addition to the standard HttpEntity interface this class also implements NIO specific HttpNIOEntity.

Since:
4.0
Version:
$Revision: 630662 $
Author:
Oleg Kalnichevski

Field Summary
 
Fields inherited from class org.apache.http.entity.FileEntity
file
 
Fields inherited from class org.apache.http.entity.AbstractHttpEntity
chunked, contentEncoding, contentType
 
Constructor Summary
FileNIOEntity(java.io.File file, java.lang.String contentType)
          Deprecated.  
 
Method Summary
 java.nio.channels.ReadableByteChannel getChannel()
          Deprecated.  
 
Methods inherited from class org.apache.http.entity.FileEntity
clone, getContent, getContentLength, isRepeatable, isStreaming, writeTo
 
Methods inherited from class org.apache.http.entity.AbstractHttpEntity
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.http.HttpEntity
consumeContent, getContent, getContentEncoding, getContentLength, getContentType, isChunked, isRepeatable, isStreaming, writeTo
 

Constructor Detail

FileNIOEntity

public FileNIOEntity(java.io.File file,
                     java.lang.String contentType)
Deprecated. 
Method Detail

getChannel

public java.nio.channels.ReadableByteChannel getChannel()
                                                 throws java.io.IOException
Deprecated. 
Specified by:
getChannel in interface HttpNIOEntity
Throws:
java.io.IOException


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.