Here you can find the source of asciiString(String fourcc)
public static byte[] asciiString(String fourcc)
//package com.java2s; /**// w w w. j a va2 s. co m * This class is part of JCodec ( www.jcodec.org ) This software is distributed * under FreeBSD License * * @author The JCodec project * */ public class Main { public static byte[] asciiString(String fourcc) { char[] ch = fourcc.toCharArray(); byte[] result = new byte[ch.length]; for (int i = 0; i < ch.length; i++) { result[i] = (byte) ch[i]; } return result; } }