while (locator.next()) recursiveWriteFormattedData(outputstream, locator, commands, fastestAxis, noDataValues);
synchronized (data) { hasMoreData = locator.hasNext(); while (hasMoreData) recursiveWriteFormattedData(outputstream, locator, commands, fastestAxis, noDataValues);
  protected void writeFormattedData(OutputStream outputstream ,                                 Locator locator,                                 FormattedXMLDataIOStyle readObj,                                 AxisInterface fastestAxis,                                 String[] noDataValues)  {     writeOut(outputstream, "<![CDATA[");     List commands = readObj.getCommands();     while (locator.next())      recursiveWriteFormattedData(outputstream, locator, commands, fastestAxis, noDataValues);     writeOut(outputstream, "]]>");  }