net.sourceforge.geeboss.model.midi.roland
Class RolandCharConverter

java.lang.Object
  extended by net.sourceforge.geeboss.model.midi.roland.RolandCharConverter

public class RolandCharConverter
extends java.lang.Object

Convert a java char to a Roland byte[] and vice versa.

Author:
Frederic BORRY

Constructor Summary
RolandCharConverter()
           
 
Method Summary
static java.util.List<java.lang.Byte> javaToRoland(int charValue)
          Convert a java int representing a char value to a roland byte array
static int rolandToJava(java.util.List<java.lang.Byte> data)
          Convert a roland byte array corresponding to char value to a java int
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RolandCharConverter

public RolandCharConverter()
Method Detail

javaToRoland

public static java.util.List<java.lang.Byte> javaToRoland(int charValue)
Convert a java int representing a char value to a roland byte array

Parameters:
charValue - the java char value
Returns:
the rolan byte array

rolandToJava

public static int rolandToJava(java.util.List<java.lang.Byte> data)
Convert a roland byte array corresponding to char value to a java int

Parameters:
data - the rolan byte array
Returns:
the java int


Copyright (c) 2005 The Geeboss team (http://geeboss.sourceforge.net). All Rights Reserved.