public class TextHelper
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
DEFAULT_ATTACHMENT_DIR
Deprecated.
|
private static int |
DEFAULT_FILE_THRESHOLD
Deprecated.
|
private static int |
DELETE_TIME
Deprecated.
|
| Constructor and Description |
|---|
TextHelper() |
| Modifier and Type | Method and Description |
|---|---|
private static java.lang.String |
getAttachmentDir(OMFactory factory)
Deprecated.
|
private static LifecycleManager |
getLifecycleManager(OMFactory factory)
Deprecated.
|
private static int |
getThreshold(OMFactory factory)
Deprecated.
|
static OMText |
toOMText(byte[] b,
int off,
int length,
OMFactory factory,
boolean isOptimize)
Deprecated.
The implementation of this method is incomplete. It will be removed in Axiom 1.3.
|
static OMText |
toOMText(byte[] b,
int off,
int length,
OMFactory factory,
boolean isOptimize,
java.lang.String attachmentDir)
Deprecated.
The implementation of this method is incomplete. It will be removed in Axiom 1.3.
|
static java.lang.String |
toString(java.io.InputStream inStream)
Deprecated.
This method was internally used by Axiom before version 1.2.9 but is no longer
required.
|
static void |
toStringBuffer(java.io.InputStream inStream,
java.lang.StringBuffer buffer)
Deprecated.
This method was internally used by Axiom before version 1.2.9 but is no longer
required.
|
static void |
toStringBuffer(OMText omText,
java.lang.StringBuffer buffer)
Deprecated.
If you really need to write the base64 encoded content of an
OMText
instance to a StringBuffer, then request the DataHandler using
OMText.getDataHandler() and use
Base64EncodingStringBufferOutputStream to encode it. |
private static int DEFAULT_FILE_THRESHOLD
private static java.lang.String DEFAULT_ATTACHMENT_DIR
private static int DELETE_TIME
public static java.lang.String toString(java.io.InputStream inStream)
throws java.io.IOException
java.io.IOExceptionpublic static void toStringBuffer(java.io.InputStream inStream,
java.lang.StringBuffer buffer)
throws java.io.IOException
java.io.IOExceptionpublic static void toStringBuffer(OMText omText, java.lang.StringBuffer buffer) throws java.io.IOException
OMText
instance to a StringBuffer, then request the DataHandler using
OMText.getDataHandler() and use
Base64EncodingStringBufferOutputStream to encode it.java.io.IOExceptionpublic static OMText toOMText(byte[] b, int off, int length, OMFactory factory, boolean isOptimize) throws java.io.IOException, javax.mail.MessagingException
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
java.io.IOExceptionjavax.mail.MessagingExceptionprivate static LifecycleManager getLifecycleManager(OMFactory factory)
private static int getThreshold(OMFactory factory)
private static java.lang.String getAttachmentDir(OMFactory factory)