public class TextHelper extends Object
Constructor and Description |
---|
TextHelper() |
Modifier and Type | Method and Description |
---|---|
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,
String attachmentDir)
Deprecated.
The implementation of this method is incomplete. It will be removed in Axiom 1.3.
|
static String |
toString(InputStream inStream)
Deprecated.
This method was internally used by Axiom before version 1.2.9 but is no longer
required.
|
static void |
toStringBuffer(InputStream inStream,
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,
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. |
public static String toString(InputStream inStream) throws IOException
IOException
public static void toStringBuffer(InputStream inStream, StringBuffer buffer) throws IOException
IOException
public static void toStringBuffer(OMText omText, StringBuffer buffer) throws IOException
OMText
instance to a StringBuffer
, then request the DataHandler
using
OMText.getDataHandler()
and use
Base64EncodingStringBufferOutputStream
to encode it.IOException
public static OMText toOMText(byte[] b, int off, int length, OMFactory factory, boolean isOptimize) throws IOException, javax.mail.MessagingException
IOException
javax.mail.MessagingException
public static OMText toOMText(byte[] b, int off, int length, OMFactory factory, boolean isOptimize, String attachmentDir) throws IOException, javax.mail.MessagingException
IOException
javax.mail.MessagingException
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.