org.apache.http.entity.mime.content
Class StringBody
java.lang.Object
org.apache.james.mime4j.message.AbstractBody
org.apache.http.entity.mime.content.AbstractContentBody
org.apache.http.entity.mime.content.StringBody
- All Implemented Interfaces:
- ContentBody, org.apache.james.mime4j.descriptor.ContentDescriptor, org.apache.james.mime4j.message.Body, org.apache.james.mime4j.message.Disposable, org.apache.james.mime4j.message.TextBody
public class StringBody
- extends AbstractContentBody
- implements org.apache.james.mime4j.message.TextBody
Constructor Summary |
StringBody(java.lang.String text)
|
StringBody(java.lang.String text,
java.nio.charset.Charset charset)
|
StringBody(java.lang.String text,
java.lang.String mimeType,
java.nio.charset.Charset charset)
|
Methods inherited from class org.apache.james.mime4j.message.AbstractBody |
dispose, getParent, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.james.mime4j.message.Body |
getParent, setParent |
Methods inherited from interface org.apache.james.mime4j.message.Disposable |
dispose |
StringBody
public StringBody(java.lang.String text,
java.lang.String mimeType,
java.nio.charset.Charset charset)
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
StringBody
public StringBody(java.lang.String text,
java.nio.charset.Charset charset)
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
StringBody
public StringBody(java.lang.String text)
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
getReader
public java.io.Reader getReader()
throws java.io.IOException
- Specified by:
getReader
in interface org.apache.james.mime4j.message.TextBody
- Throws:
java.io.IOException
writeTo
public void writeTo(java.io.OutputStream out,
int mode)
throws java.io.IOException
- Specified by:
writeTo
in interface org.apache.james.mime4j.message.Body
- Throws:
java.io.IOException
getTransferEncoding
public java.lang.String getTransferEncoding()
- Specified by:
getTransferEncoding
in interface org.apache.james.mime4j.descriptor.ContentDescriptor
getCharset
public java.lang.String getCharset()
- Specified by:
getCharset
in interface org.apache.james.mime4j.descriptor.ContentDescriptor
getContentTypeParameters
public java.util.Map<?,?> getContentTypeParameters()
- Specified by:
getContentTypeParameters
in interface org.apache.james.mime4j.descriptor.ContentDescriptor
- Overrides:
getContentTypeParameters
in class AbstractContentBody
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interface org.apache.james.mime4j.descriptor.ContentDescriptor
getFilename
public java.lang.String getFilename()
- Specified by:
getFilename
in interface ContentBody
Copyright © 1999-2008 Apache Software Foundation. All Rights Reserved.