if ( (attrib=getEndian()) !=null)
attrib = (String) ((Attribute) attribHash.get(ENDIAN_XML_ATTRIBUTE_NAME)).getAttribValue(); if ( attrib != null)
  protected String basicXMLWriter (                                Writer outputWriter,                                String indent,                                boolean dontCloseNode,                                String newNodeNameString,                                String noChildObjectNodeName                             )  throws java.io.IOException  {    boolean niceOutput = Specification.getInstance().isPrettyXDFOutput();    String myIndent;    if (indent!=null)      myIndent = indent;    else      myIndent = "";    String moreIndent = myIndent + Specification.getInstance().getPrettyXDFOutputIndentation();    if (niceOutput)      outputWriter.write( myIndent);    //open the read block    outputWriter.write( "<"+READ_NODE_NAME);    //write out attributes of read, ie.    synchronized(attribHash) {  //sync, prevent the attribHash' structure be changed      String attrib;      if ( (attrib=getEncoding()) !=null)        {          outputWriter.write( " "+ENCODING_XML_ATTRIBUTE_NAME+"=\"");         outputWriter.write( attrib);         outputWriter.write( "\"");      }      if ( (attrib=getEndian()) !=null)      {          outputWriter.write( " "+ENDIAN_XML_ATTRIBUTE_NAME+"=\"");         outputWriter.write( attrib);         outputWriter.write( "\"");      }      if ( (attrib=getReadId()) !=null)      {          outputWriter.write( " "+ID_XML_ATTRIBUTE_NAME+"=\"");         outputWriter.write( attrib);         outputWriter.write( "\"");      }      if ( (attrib=getReadIdRef()) !=null)      {          outputWriter.write( " "+IDREF_XML_ATTRIBUTE_NAME+"=\"");         outputWriter.write( attrib);         outputWriter.write( "\"");      }    }    outputWriter.write( ">");    //specific tailoring for childObj: Tagged, Delimited, Formated    specificIOStyleToXDF(outputWriter, moreIndent);     //close the read block    if (niceOutput) {      // outputWriter.write( Constants.NEW_LINE);      outputWriter.write( indent);    }     outputWriter.write( "</"+READ_NODE_NAME+">");//    if (niceOutput) { outputWriter.write(Constants.NEW_LINE); }     return READ_NODE_NAME;  }