Package com.jediterm.util

Source Code of com.jediterm.util.CharBufferUtil

package com.jediterm.util;

import com.jediterm.CharBuffer;

/**
* @author traff
*/
public class CharBufferUtil {
  public static CharBuffer create(String str) {
    char[] buf = new char[str.length()];
    for (int i = 0; i<str.length(); i++) {
      buf[i] = str.charAt(i);
    }
    return new CharBuffer(buf, 0, buf.length);
  }
}
TOP

Related Classes of com.jediterm.util.CharBufferUtil

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.