com.strangelight.util
Class StringUtils

java.lang.Object
  |
  +--com.strangelight.util.StringUtils

public final class StringUtils
extends java.lang.Object

A set of convenience utilities for manipulating Strings.


Method Summary
static java.lang.String convert_to_Unix(java.lang.String s)
          Converts all EOL characters to "\n", regardless of the original format.
static java.lang.String hexEncode(byte[] b)
           Converts a byte array into a hexidecimal String representation, where each byte is represented by a two-byte String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convert_to_Unix

public static java.lang.String convert_to_Unix(java.lang.String s)
Converts all EOL characters to "\n", regardless of the original format. (Assumes "\r\n" is a single PC-formatted EOL character.)


hexEncode

public static java.lang.String hexEncode(byte[] b)

Converts a byte array into a hexidecimal String representation, where each byte is represented by a two-byte String. e.g. { 012, 27, 0x3C } would be converted to "0a1b3c"