public class DefaultContentProducer extends DefaultContentDataProducer implements ContentProducer
| Constructor and Description |
|---|
DefaultContentProducer(String contentType,
long contentLength,
InputStream contentData)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength()
Return content length.
|
String |
getContentType()
Returns content type.
|
getContentDataclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContentDatapublic DefaultContentProducer(String contentType, long contentLength, InputStream contentData)
contentType - content typecontentLength - content lengthcontentData - content datapublic String getContentType()
ContentProducergetContentType in interface ContentProducernull for unknownpublic long getContentLength()
ContentProducergetContentLength in interface ContentProducer-1L for unknownCopyright © 2011-2012. All Rights Reserved.