StringBuilder buf = new StringBuilder(1000);
StringBuffer buf = new StringBuffer(1000);
    private void printDSpaceInfoRecords(List bitstreams, OutputStreamWriter osw)            throws IOException    {        Iterator iter = bitstreams.iterator();        while (iter.hasNext())        {            DSpaceBitstreamInfo info = (DSpaceBitstreamInfo) iter.next();            StringBuilder buf = new StringBuilder(1000);            buf.append("------------------------------------------------ \n");            buf.append(msg("format-id")).append(" =  ").append(                    info.getBitstreamFormatId()).append("\n");            buf.append(msg("deleted")).append(" = ").append(info.getDeleted())                    .append("\n");            buf.append(msg("bitstream-id")).append(" = ").append(                    info.getBitstreamId()).append("\n");            buf.append(msg("checksum-algorithm")).append(" = ").append(                    info.getChecksumAlgorithm()).append("\n");            buf.append(msg("internal-id")).append(" = ").append(                    info.getInternalId()).append("\n");            buf.append(msg("name")).append(" = ").append(info.getName())                    .append("\n");            buf.append(msg("size")).append(" = ").append(info.getSize())                    .append("\n");            buf.append(msg("source")).append(" = ").append(info.getSource())                    .append("\n");            buf.append(msg("checksum")).append(" = ").append(                    info.getStoredChecksum()).append("\n");            buf.append(msg("store-number")).append(" = ").append(                    info.getStoreNumber()).append("\n");            buf.append(msg("description")).append(" = ").append(                    info.getUserFormatDescription()).append("\n");            buf.append("----------------------------------------------- \n\n");            osw.write(buf.toString());        }    }