writeOut(outputstream, " readId=\"" + attrib + "\"");
{ writeOut(outputstream, " readId=\""); writeOut(outputstream, attrib); writeOut(outputstream, "\""); }
  public void toXMLOutputStream (                                   OutputStream outputstream,                                   Hashtable XMLDeclAttribs,                                   String indent,                                   boolean dontCloseNode,                                   String newNodeNameString,                                   String noChildObjectNodeName                                )  {    boolean niceOutput = Specification.getInstance().isPrettyXDFOutput();    String myIndent;    if (indent!=null)      myIndent = indent;    else      myIndent = "";    String moreIndent = myIndent + Specification.getInstance().getPrettyXDFOutputIndentation();    if (niceOutput)      writeOut(outputstream, myIndent);    //open the read block    writeOut(outputstream, "<read");    //write out attributes of read, ie.    synchronized(attribHash) {  //sync, prevent the attribHash' structure be changed      String attrib;      if ( (attrib=getEncoding()) !=null)        writeOut(outputstream, " encoding=\"" + attrib+"\"");      if ( (attrib=getEndian()) !=null)        writeOut(outputstream, " endian=\"" + attrib + "\"");      if ( (attrib=getReadId()) !=null)        writeOut(outputstream, " readId=\"" + attrib + "\"");      if ( (attrib=getReadIdRef()) !=null)        writeOut(outputstream, " readIdRef=\"" + attrib + "\"");    }    writeOut(outputstream, ">");    //specific tailoring for childObj: Tagged, Delimited, Formated    specificIOStyleToXDF(outputstream, moreIndent);     //close the read block    if (niceOutput) {      writeOut(outputstream, Constants.NEW_LINE);      writeOut(outputstream, indent);    }     writeOut(outputstream, "</read>");    if (niceOutput) {      writeOut(outputstream,Constants.NEW_LINE);     }  }