| java.lang.Object com.sun.cldc.i18n.Helper
Helper | public class Helper (Code) | | This class provides general helper functions for the J2ME environment.
No application code should reference this class directly.
version: CLDC 1.1 03/29/02 |
Method Summary | |
public static char[] | byteToCharArray(byte[] buffer, int offset, int length) | public static synchronized char[] | byteToCharArray(byte[] buffer, int offset, int length, String enc) | public static byte[] | charToByteArray(char[] buffer, int offset, int length) | public static synchronized byte[] | charToByteArray(char[] buffer, int offset, int length, String enc) | public static Reader | getStreamReader(InputStream is) | public static Reader | getStreamReader(InputStream is, String name) | public static Writer | getStreamWriter(OutputStream os) | public static Writer | getStreamWriter(OutputStream os, String name) |
byteToCharArray | public static char[] byteToCharArray(byte[] buffer, int offset, int length)(Code) | | Convert a byte array to a char array
Parameters: buffer - The byte array buffer Parameters: offset - The offset Parameters: length - The length A new char array |
byteToCharArray | public static synchronized char[] byteToCharArray(byte[] buffer, int offset, int length, String enc) throws UnsupportedEncodingException(Code) | | Convert a byte array to a char array
Parameters: buffer - The byte array buffer Parameters: offset - The offset Parameters: length - The length Parameters: enc - The character encoding A new char array exception: UnsupportedEncodingException - If the encoding is not known |
charToByteArray | public static byte[] charToByteArray(char[] buffer, int offset, int length)(Code) | | Convert a char array to a byte array
Parameters: buffer - The char array buffer Parameters: offset - The offset Parameters: length - The length A new byte array |
charToByteArray | public static synchronized byte[] charToByteArray(char[] buffer, int offset, int length, String enc) throws UnsupportedEncodingException(Code) | | Convert a char array to a byte array
Parameters: buffer - The char array buffer Parameters: offset - The offset Parameters: length - The length Parameters: enc - The character encoding A new byte array exception: UnsupportedEncodingException - If the encoding is not known |
getStreamReader | public static Reader getStreamReader(InputStream is)(Code) | | Get a reader for an InputStream
Parameters: is - The input stream the reader is for A new reader for the stream |
getStreamWriter | public static Writer getStreamWriter(OutputStream os)(Code) | | Get a writer for an OutputStream
Parameters: os - The output stream the reader is for A new writer for the stream |
|
|