public void parse(List<CMapObject> ls) throws java.io.IOException {
  ls.clear();
  CMapObject ob;
  while ((ob=readObject()) != null) {
    ls.add(ob);
    if (ob.isLiteral())     break;
  }
}

public void parse ( List < CMapObject > ls ) throws java . io . IOException { ls . clear ( ) ; CMapObject ob ; while ( ( ob = readObject ( ) ) != null ) { ls . add ( ob ) ; if ( ob . isLiteral ( ) ) break ; } }
parses a single command from the content . each command is output as an array of arguments having the command itself as the last element . the returned array will be empty if the end of content was reached .
