com.github.dakusui.symfonion.core
Class Util

java.lang.Object
  extended by com.github.dakusui.symfonion.core.Util

public class Util
extends Object


Constructor Summary
Util()
           
 
Method Summary
static int count(char ch, String s)
           
static void dump(int[] arr)
           
static byte[] getIntBytes(int input)
           
static String loadFile(String fileName)
           
static String loadResource(String resourceName)
           
static Fraction parseFraction(String str)
           
static Fraction parseNoteLength(String length)
           
static int toint(Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

count

public static int count(char ch,
                        String s)

parseFraction

public static Fraction parseFraction(String str)
                              throws SymfonionException
Throws:
SymfonionException

loadResource

public static String loadResource(String resourceName)
                           throws SymfonionException
Throws:
SymfonionException

loadFile

public static String loadFile(String fileName)
                       throws SymfonionException
Throws:
SymfonionException

parseNoteLength

public static Fraction parseNoteLength(String length)
                                throws SymfonionException
Throws:
SymfonionException

getIntBytes

public static final byte[] getIntBytes(int input)

dump

public static void dump(int[] arr)

toint

public static int toint(Object o)


Copyright © 2013. All Rights Reserved.