public class TextHelper
extends java.lang.Object
| Constructor and Description |
|---|
TextHelper() |
| Modifier and Type | Method and Description |
|---|---|
static OMText |
toOMText(byte[] b,
int off,
int length,
OMFactory factory,
boolean isOptimize)
Create an OMText node from a byte array containing binary data
If the byte array is large and the optimize flag is set, then
the data is stored in a temp file to reduce in-core memory
|
static OMText |
toOMText(byte[] b,
int off,
int length,
OMFactory factory,
boolean isOptimize,
java.lang.String attachmentDir)
Create an OMText node from a byte array containing binary data
If the byte array is large and the optimize flag is set, then
the data is stored in a temp file to reduce in-core memory
|
static java.lang.String |
toString(java.io.InputStream inStream) |
static void |
toStringBuffer(java.io.InputStream inStream,
java.lang.StringBuffer buffer)
Append Base64 encoding of the data in the inStream to the specified buffer
|
static void |
toStringBuffer(OMText omText,
java.lang.StringBuffer buffer)
Append data in the omText to the specified buffer
|
public static java.lang.String toString(java.io.InputStream inStream)
throws java.io.IOException
inStream - InputStreamjava.io.IOExceptionpublic static void toStringBuffer(java.io.InputStream inStream,
java.lang.StringBuffer buffer)
throws java.io.IOException
inStream - InputStreambuffer - Bufferjava.io.IOExceptionpublic static void toStringBuffer(OMText omText, java.lang.StringBuffer buffer) throws java.io.IOException
omText - the text node to get the character data frombuffer - Bufferjava.io.IOExceptionpublic static OMText toOMText(byte[] b, int off, int length, OMFactory factory, boolean isOptimize) throws java.io.IOException, javax.mail.MessagingException
b - off - length - factory - isOptimize - java.io.IOExceptionjavax.mail.MessagingExceptionpublic static OMText toOMText(byte[] b, int off, int length, OMFactory factory, boolean isOptimize, java.lang.String attachmentDir) throws java.io.IOException, javax.mail.MessagingException
b - off - length - factory - isOptimize - attachmentDir - java.io.IOExceptionjavax.mail.MessagingExceptionCopyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.