private void printHeader(StringBuffer buf){ String classification = getClassification(); if (classification == null || classification.isEmpty()) return; // we can;t display this line since the classification is not there... buf.append("HEADER "); buf.append(classification); buf.append(" "); // fill up the white space to the right column int l = classification.length() + 10 ; while (l < 49){ l++; buf.append(" "); } Date d = getDepDate(); if ( d != null){ // provide correct display of Dep date... buf.append(dateFormat.format(d)); } else { buf.append(" "); } buf.append(" "); String id = getIdCode(); if ( id != null){ buf.append(getIdCode()); buf.append(" "); } else buf.append(" "); buf.append(newline); }
if ( modDate.equals(new Date(0)) ) { Date depositionDate = pdbHeader.getDepDate();
mmtfDecoderInterface.setHeaderInfo(pdbHeader.getRfree(), pdbHeader.getRwork(), pdbHeader.getResolution(), pdbHeader.getTitle(), MmtfUtils.dateToIsoString(pdbHeader.getDepDate()), MmtfUtils.dateToIsoString(pdbHeader.getRelDate()), MmtfUtils.techniquesToStringArray(pdbHeader.getExperimentalTechniques())); mmtfDecoderInterface.setXtalInfo(MmtfUtils.getSpaceGroupAsString(xtalInfo.getSpaceGroup()), MmtfUtils.getUnitCellAsArray(xtalInfo), MmtfUtils.getNcsAsArray(xtalInfo.getNcsOperators()));