import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import org.gnu.pilotlink.MidiRecord; import org.gnu.pilotlink.PilotLink; import org.gnu.pilotlink.PilotLinkException; import org.gnu.pilotlink.SysInfo; import org.gnu.pilotlink.User; public class MidiMgr { public final static int LIST=1; public final static int INSTALL=2; public final static int NOTHING=0; public final static int DELETE=3; public final static int FETCH=4; public static void main(String args[]) { String port="/dev/usb/tts/1"; //DEVFS String db="MIDI Ring Tones"; int command=0; String arg=""; String arg2=""; try { for (int i=0; i= '0' && arr[i] <= 'z') || (arr[i] == ' ')) { chars += (char) arr[i]; } else if (arr[i] == 252) { chars += "\ufffd"; } else if (arr[i] ==246) { chars += "\ufffd"; } else if (arr[i] == (byte) '\ufffd') { chars += "\ufffd"; } else { chars += "."; } } System.out.println(" " + chars); } } }