FileDocCategorySizeDatePackage
Ascii.javaAPI Docmp4parser 1.0-RC-171274Wed Dec 19 20:10:38 GMT 2012com.coremedia.iso

Ascii

public final class Ascii extends Object
Converts byte[] -> String and vice versa.

Fields Summary
Constructors Summary
Methods Summary
public static byte[]convert(java.lang.String s)

    try {
      if (s != null) {
        return s.getBytes("us-ascii");
      } else {
        return null;
      }
    } catch (UnsupportedEncodingException e) {
      throw new Error(e);
    }
  
public static java.lang.Stringconvert(byte[] b)

    try {
      if (b != null) {
        return new String(b, "us-ascii");
      } else {
        return null;
      }
    } catch (UnsupportedEncodingException e) {
      throw new Error(e);
    }