public class ResourceBody extends org.apache.http.entity.mime.content.AbstractContentBody
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_MIMETYPE |
Constructor and Description |
---|
ResourceBody(Resource res,
String mimetype,
String fileName,
String charset) |
Modifier and Type | Method and Description |
---|---|
String |
getCharset() |
long |
getContentLength() |
String |
getFilename() |
Resource |
getResource() |
String |
getTransferEncoding() |
void |
writeTo(OutputStream os) |
public static final String DEFAULT_MIMETYPE
public ResourceBody(Resource res, String mimetype, String fileName, String charset) throws FileNotFoundException
FileNotFoundException
public String getFilename()
public void writeTo(OutputStream os) throws IOException
IOException
public String getCharset()
getCharset
in interface org.apache.http.entity.mime.content.ContentDescriptor
getCharset
in class org.apache.http.entity.mime.content.AbstractContentBody
public long getContentLength()
public String getTransferEncoding()
public Resource getResource()
Copyright © 2015 Lucee