|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.messaging.saaj.packaging.mime.util.ASCIIUtility
public class ASCIIUtility
Method Summary | |
---|---|
static byte[] |
getBytes(InputStream is)
Deprecated. this is an expensive operation that require an additional buffer reallocation just to get the array of an exact size. Unless you absolutely need the exact size array, don't use this. Use ByteOutputStream and ByteOutputStream.write(InputStream) . |
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 |
---|
public static int parseInt(byte[] b, int start, int end, int radix) throws NumberFormatException
start
till, but not including end
. Based on java.lang.Integer.parseInt()
NumberFormatException
public static String toString(byte[] b, int start, int end)
start
till, but not including end
.
public static byte[] getBytes(String s)
public static byte[] getBytes(InputStream is) throws IOException
ByteOutputStream
and ByteOutputStream.write(InputStream)
.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |