public void writeExternal(ObjectOutput out) throws IOException {

        // write the history id
        out.write(m_publishHistoryId.toByteArray());
        // write the project id
        out.write((m_projectId != null) ? m_projectId.toByteArray() : CmsUUID.getNullUUID().toByteArray());
        // write the flags
        out.writeInt((m_publishSiblings) ? 1 : 0);
        out.writeInt((m_publishSubResources) ? 1 : 0);
        // write the list of direct publish resources by writing the uuid of each resource
        if (m_directPublishResources != null) {
            out.writeInt(m_directPublishResources.size());
            for (Iterator<CmsResource> i = m_directPublishResources.iterator(); i.hasNext();) {
                out.write((i.next()).getStructureId().toByteArray());
            }
        } else {
            out.writeInt(NIL);
        }
        // write the list of published files by writing the uuid of each resource
        if (m_fileList != null) {
            out.writeInt(m_fileList.size());
            for (Iterator<CmsResource> i = m_fileList.iterator(); i.hasNext();) {
                out.write((i.next()).getStructureId().toByteArray());
            }
        } else {
            out.writeInt(NIL);
        }
        // write the list of published folders by writing the uuid of each resource
        if (m_folderList != null) {
            out.writeInt(m_folderList.size());
            for (Iterator<CmsResource> i = m_folderList.iterator(); i.hasNext();) {
                out.write((i.next()).getStructureId().toByteArray());
            }
        } else {
            out.writeInt(NIL);
        }
        // write the list of deleted folders by writing the uuid of each resource
        if (m_deletedFolderList != null) {
            out.writeInt(m_deletedFolderList.size());
            for (Iterator<CmsResource> i = m_deletedFolderList.iterator(); i.hasNext();) {
                out.write((i.next()).getStructureId().toByteArray());
            }
        } else {
            out.writeInt(NIL);
        }
    }
public void writeExternal ( ObjectOutput out ) throws IOException { out . write ( m_publishHistoryId . toByteArray ( ) ) ; out . write ( ( m_projectId != null ) ? m_projectId . toByteArray ( ) : CmsUUID . getNullUUID ( ) . toByteArray ( ) ) ; out . writeInt ( ( m_publishSiblings ) ? 1 : 0 ) ; out . writeInt ( ( m_publishSubResources ) ? 1 : 0 ) ; if ( m_directPublishResources != null ) { out . writeInt ( m_directPublishResources . size ( ) ) ; for ( Iterator < CmsResource > i = m_directPublishResources . iterator ( ) ; i . hasNext ( ) ; ) { out . write ( ( i . next ( ) ) . getStructureId ( ) . toByteArray ( ) ) ; } } else { out . writeInt ( NIL ) ; } if ( m_fileList != null ) { out . writeInt ( m_fileList . size ( ) ) ; for ( Iterator < CmsResource > i = m_fileList . iterator ( ) ; i . hasNext ( ) ; ) { out . write ( ( i . next ( ) ) . getStructureId ( ) . toByteArray ( ) ) ; } } else { out . writeInt ( NIL ) ; } if ( m_folderList != null ) { out . writeInt ( m_folderList . size ( ) ) ; for ( Iterator < CmsResource > i = m_folderList . iterator ( ) ; i . hasNext ( ) ; ) { out . write ( ( i . next ( ) ) . getStructureId ( ) . toByteArray ( ) ) ; } } else { out . writeInt ( NIL ) ; } if ( m_deletedFolderList != null ) { out . writeInt ( m_deletedFolderList . size ( ) ) ; for ( Iterator < CmsResource > i = m_deletedFolderList . iterator ( ) ; i . hasNext ( ) ; ) { out . write ( ( i . next ( ) ) . getStructureId ( ) . toByteArray ( ) ) ; } } else { out . writeInt ( NIL ) ; } }
@see java.io.Externalizable#writeExternal(java.io.ObjectOutput)