com.sun.xml.ws.util
Class ASCIIUtility

java.lang.Object
  extended by com.sun.xml.ws.util.ASCIIUtility

public class ASCIIUtility
extends Object

Copied from mail.jar.


Method Summary
static void copyStream(InputStream is, OutputStream out)
           
static byte[] getBytes(InputStream is)
           
static byte[] getBytes(String s)
           
static int parseInt(byte[] b, int start, int end, int radix)
          Convert the bytes within the specified range of the given byte array into a signed integer in the given radix .
static String toString(byte[] b, int start, int end)
          Convert the bytes within the specified range of the given byte array into a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseInt

public static int parseInt(byte[] b,
                           int start,
                           int end,
                           int radix)
                    throws NumberFormatException
Convert the bytes within the specified range of the given byte array into a signed integer in the given radix . The range extends from start till, but not including end.

Based on java.lang.Integer.parseInt()

Throws:
NumberFormatException

toString

public static String toString(byte[] b,
                              int start,
                              int end)
Convert the bytes within the specified range of the given byte array into a String. The range extends from start till, but not including end.


getBytes

public static byte[] getBytes(String s)

getBytes

public static byte[] getBytes(InputStream is)
                       throws IOException
Throws:
IOException

copyStream

public static void copyStream(InputStream is,
                              OutputStream out)
                       throws IOException
Throws:
IOException