org.apache.axiom.om.util
Class TextHelper

java.lang.Object
  extended by org.apache.axiom.om.util.TextHelper

public class TextHelper
extends java.lang.Object


Constructor Summary
TextHelper()
           
 
Method Summary
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)
           
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextHelper

public TextHelper()
Method Detail

toString

public static java.lang.String toString(java.io.InputStream inStream)
                                 throws java.io.IOException
Parameters:
inStream - InputStream
Returns:
Base64 encoded string representint the data in inStream
Throws:
java.io.IOException

toStringBuffer

public static void toStringBuffer(java.io.InputStream inStream,
                                  java.lang.StringBuffer buffer)
                           throws java.io.IOException
Append Base64 encoding of the data in the inStream to the specified buffer

Parameters:
inStream - InputStream
buffer - Buffer
Throws:
java.io.IOException

toStringBuffer

public static void toStringBuffer(OMText omText,
                                  java.lang.StringBuffer buffer)
                           throws java.io.IOException
Append data in the omText to the specified buffer

Parameters:
omText - the text node to get the character data from
buffer - Buffer
Throws:
java.io.IOException

toOMText

public static OMText toOMText(byte[] b,
                              int off,
                              int length,
                              OMFactory factory,
                              boolean isOptimize)
                       throws java.io.IOException,
                              javax.mail.MessagingException
Deprecated. The implementation of this method is incomplete. It will be removed in Axiom 1.3.

Throws:
java.io.IOException
javax.mail.MessagingException

toOMText

public static OMText toOMText(byte[] b,
                              int off,
                              int length,
                              OMFactory factory,
                              boolean isOptimize,
                              java.lang.String attachmentDir)
                       throws java.io.IOException,
                              javax.mail.MessagingException
Deprecated. The implementation of this method is incomplete. It will be removed in Axiom 1.3.

Throws:
java.io.IOException
javax.mail.MessagingException


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.