import java.util.Vector;

//...

    public static String[] quotedString(
        String from, char start, char end)
    {
        Vector list = new Vector();

        int startPos = from.indexOf(start);
        while (startPos != -1) {
            int endPos = from.indexOf(end, startPos + 1);
            if (endPos == -1) {
                list.addElement(from.substring(startPos));
                break;
            }
            list.addElement(from.substring(startPos, endPos + 1));
            startPos = from.indexOf(start, endPos + 1);
        }

        String[] array = new String[list.size()];
        list.copyInto(array);
        return array;
    }
