for (int i = 0; i < entries.length; i++) { stream.println("URL:           "+ entries[i].getUrl() ); stream.println("Title:         "+ entries[i].getTitle() ); stream.print("Author:        "+ entries[i].getAuthor() ); stream.println( "".equals(entries[i].getAuthorEmail()) ? "" : " <"+entries[i].getAuthorEmail()+">"); stream.println("Issued:        "+ entries[i].getIssued() ); stream.println("Last-Modified: "+ entries[i].getLastModified() ); stream.println("Last-Fetched:  "+ entries[i].getLastFetched() ); stream.println("FileType:      "+ entries[i].getFileType() ); stream.println("Tags:          "+ StringUtil.joinStrings(entries[i].getTags(), Entry.TAG_SEPARATOR) ); stream.println("Note:          "+ util.truncate(entries[i].getNote()) );
for (int i = 0; i < entries.size(); i++) { Entry entry = entries.getEntry(i);  stream.println("URL:           "+ entry.getUrl() ); stream.println("Title:         "+ entry.getTitle() ); stream.print("Author:        "+ entry.getAuthor() ); stream.println( "".equals(entry.getAuthorEmail()) ? "" : " <"+entry.getAuthorEmail()+">"); stream.println("Issued:        "+ entry.getIssued() ); stream.println("Last-Modified: "+ entry.getLastModified() ); stream.println("Last-Fetched:  "+ entry.getLastFetched() ); stream.println("FileType:      "+ entry.getFileType() ); stream.println("Tags:          "+ StringUtil.joinStrings(entry.getTags(), Entry.TAG_SEPARATOR) ); stream.println("Note:          "+ util.truncate(entry.getNote()) );
    public void output(Registry registry, Output output, PrintWriter stream, Entry[] entries)                throws OperationException    {        if ( entries == null )            throw new IllegalArgumentException("entries parameter is not allowed to be null");        StringUtil util = new StringUtil(registry);                StringBuffer sb = new StringBuffer();        for (int i = 0; i < entries.length; i++) {            stream.println("URL:           "+ entries[i].getUrl() );            stream.println("Title:         "+ entries[i].getTitle() );            stream.print("Author:        "+ entries[i].getAuthor() );            stream.println( "".equals(entries[i].getAuthorEmail()) ? "" : " <"+entries[i].getAuthorEmail()+">");            stream.println("Issued:        "+ entries[i].getIssued() );            stream.println("Last-Modified: "+ entries[i].getLastModified() );            stream.println("Last-Fetched:  "+ entries[i].getLastFetched() );            stream.println("FileType:      "+ entries[i].getFileType() );            stream.println("Tags:          "+ StringUtil.joinStrings(entries[i].getTags(), Entry.TAG_SEPARATOR) );            stream.println("Note:          "+ util.truncate(entries[i].getNote()) );            stream.println("Content:");            stream.println( util.truncate(entries[i].getContent()) );        }        stream.println();    }