com.clickntap.utils
Class AsciiUtils

java.lang.Object
  extended by com.clickntap.utils.AsciiUtils

public class AsciiUtils
extends Object


Constructor Summary
AsciiUtils()
           
 
Method Summary
static void binaryToText(File file1, File file2)
           
static void binaryToText(InputStream in, Writer out)
           
static void binaryToText(String fileName1, String fileName2)
           
static int bytesToInt(byte[] b)
           
static int byteToInt(byte b)
           
static boolean isWebized(String text)
           
static String limit(String text, int limit)
           
static String phonize(char[] text)
           
static String phonize(String text)
           
static void textToBinary(File file1, File file2)
           
static void textToBinary(InputStream in, OutputStream out)
           
static void textToBinary(String fileName1, String fileName2)
           
static String textToUtf7(char[] text)
           
static String textToUtf7(String text)
           
static String utf7ToText(String text)
           
static String webize(char[] text)
           
static String webize(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsciiUtils

public AsciiUtils()
Method Detail

limit

public static String limit(String text,
                           int limit)

utf7ToText

public static String utf7ToText(String text)

textToUtf7

public static String textToUtf7(String text)

textToUtf7

public static String textToUtf7(char[] text)

binaryToText

public static void binaryToText(String fileName1,
                                String fileName2)
                         throws IOException
Throws:
IOException

binaryToText

public static void binaryToText(File file1,
                                File file2)
                         throws FileNotFoundException,
                                IOException
Throws:
FileNotFoundException
IOException

binaryToText

public static void binaryToText(InputStream in,
                                Writer out)
                         throws IOException
Throws:
IOException

textToBinary

public static void textToBinary(String fileName1,
                                String fileName2)
                         throws IOException
Throws:
IOException

textToBinary

public static void textToBinary(File file1,
                                File file2)
                         throws FileNotFoundException,
                                IOException
Throws:
FileNotFoundException
IOException

textToBinary

public static void textToBinary(InputStream in,
                                OutputStream out)
                         throws IOException
Throws:
IOException

bytesToInt

public static int bytesToInt(byte[] b)

byteToInt

public static int byteToInt(byte b)

webize

public static String webize(String text)

webize

public static String webize(char[] text)

phonize

public static String phonize(String text)

phonize

public static String phonize(char[] text)

isWebized

public static boolean isWebized(String text)


Copyright © 2014. All rights reserved.