public class DefaultContentConsumer extends DefaultContentDataConsumer implements ContentConsumer
| Constructor and Description |
|---|
DefaultContentConsumer(OutputStream contentData)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength()
Returns content length.
|
String |
getContentType()
Returns content type.
|
void |
setContentLength(long contentLength)
Sets content length.
|
void |
setContentType(String contentType)
Sets content type.
|
setContentDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetContentDatapublic DefaultContentConsumer(OutputStream contentData)
contentData - content datapublic String getContentType()
public void setContentType(String contentType)
ContentConsumersetContentType in interface ContentConsumercontentType - content type; null for unknown.public long getContentLength()
public void setContentLength(long contentLength)
ContentConsumersetContentLength in interface ContentConsumercontentLength - content length. -1L for unknown.Copyright © 2011-2012. All Rights Reserved.