NFileEntity
@Deprecated public class FileNIOEntity extends FileEntity implements HttpNIOEntity
HttpEntity
interface this class also implements NIO specific
HttpNIOEntity
.file
chunked, contentEncoding, contentType
Constructor and Description |
---|
FileNIOEntity(File file,
String contentType)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ReadableByteChannel |
getChannel()
Deprecated.
|
clone, getContent, getContentLength, isRepeatable, isStreaming, writeTo
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
consumeContent, getContent, getContentEncoding, getContentLength, getContentType, isChunked, isRepeatable, isStreaming, writeTo
public ReadableByteChannel getChannel() throws IOException
getChannel
in interface HttpNIOEntity
IOException
Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.