writeOut(outputstream, valueListOverflow); } else { Log.errorln("Error: valueList doesnt have "+specialValue+" defined but value does. Ignoring value.");
doValuePrint (outputstream, specialValue, valueListOverflow);
   public void toXMLOutputStream (OutputStream outputstream, String indent)   throws java.io.IOException   {      if (Specification.getInstance().isPrettyXDFOutput())         writeOut(outputstream, indent); // indent node if desired      // no need to have repeatable set to 'yes' would just waste space even if we used this functionality.      writeOut(outputstream, "<valueList delimiter=\""+valueListDelimiter+"\" repeatable=\"no\"");      if (valueListNoData != null) writeOut(outputstream, " noDataValue=\""+valueListNoData+"\"");      if (valueListInfinite != null) writeOut(outputstream, " infiniteValue=\""+valueListInfinite+"\"");      if (valueListInfiniteNegative != null) writeOut(outputstream, " infiniteNegaiveValue=\""+valueListInfiniteNegative+"\"");      if (valueListNotANumber != null) writeOut(outputstream, " notANumberValue=\""+valueListNotANumber+"\"");      if (valueListUnderflow != null) writeOut(outputstream, " underflowValue=\""+valueListUnderflow+"\"");      if (valueListOverflow != null) writeOut(outputstream, " overflowValue=\""+valueListOverflow+"\"");      writeOut(outputstream, ">");      Iterator iter = values.iterator();      while (iter.hasNext()) {         Value thisValue = (Value) iter.next();         String specialValue = thisValue.getSpecial();         if(specialValue != null) {            if(specialValue.equals(Constants.VALUE_SPECIAL_INFINITE)) {               writeOut(outputstream, valueListInfinite);            } else if(specialValue.equals(Constants.VALUE_SPECIAL_INFINITE_NEGATIVE)) {               writeOut(outputstream, valueListInfiniteNegative);            } else if(specialValue.equals(Constants.VALUE_SPECIAL_NODATA)) {               writeOut(outputstream, valueListNoData);            } else if(specialValue.equals(Constants.VALUE_SPECIAL_NOTANUMBER)) {               writeOut(outputstream, valueListNotANumber);            } else if(specialValue.equals(Constants.VALUE_SPECIAL_UNDERFLOW)) {               writeOut(outputstream, valueListUnderflow);            } else if(specialValue.equals(Constants.VALUE_SPECIAL_OVERFLOW)) {               writeOut(outputstream, valueListOverflow);            } else {               Log.errorln("Error: valueList doesnt have "+specialValue+" defined but value does. Ignoring value.");            }         } else {            writeOut(outputstream, thisValue.getValue());         }         if (iter.hasNext())            writeOut(outputstream, valueListDelimiter);      }      writeOut(outputstream, "</valueList>");      if (Specification.getInstance().isPrettyXDFOutput())          writeOut(outputstream, Constants.NEW_LINE);   }