public abstract class LazyDefaultStreamedContent extends Object implements StreamedContent
Constructor and Description |
---|
LazyDefaultStreamedContent() |
LazyDefaultStreamedContent(InputStream stream) |
LazyDefaultStreamedContent(InputStream stream,
String contentType) |
LazyDefaultStreamedContent(InputStream stream,
String contentType,
String name) |
LazyDefaultStreamedContent(InputStream stream,
String contentType,
String name,
String contentEncoding) |
Modifier and Type | Method and Description |
---|---|
String |
getContentEncoding() |
String |
getContentType() |
String |
getName() |
InputStream |
getStream() |
abstract InputStream |
initializeStream() |
void |
setContentEncoding(String contentEncoding) |
void |
setContentType(String contentType) |
void |
setName(String name) |
void |
setStream(InputStream stream) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContentLength
public LazyDefaultStreamedContent()
public LazyDefaultStreamedContent(InputStream stream)
public LazyDefaultStreamedContent(InputStream stream, String contentType)
public LazyDefaultStreamedContent(InputStream stream, String contentType, String name)
public LazyDefaultStreamedContent(InputStream stream, String contentType, String name, String contentEncoding)
public InputStream getStream()
getStream
in interface StreamedContent
public void setStream(InputStream stream)
public String getContentType()
getContentType
in interface StreamedContent
public void setContentType(String contentType)
public String getName()
getName
in interface StreamedContent
public void setName(String name)
public String getContentEncoding()
getContentEncoding
in interface StreamedContent
public void setContentEncoding(String contentEncoding)
public abstract InputStream initializeStream()
Copyright © 2017. All rights reserved.