Code example for ObjectInput

Methods: readBooleanreadLongreadUTFreadObject

0
                out);
    } 
 
    public void readExternal(ObjectInput in) throws IOException,
            ClassNotFoundException { 
        if (in.readBoolean()) {
            status = Status.valueOf(in.readUTF());
        } 
 
        if (in.readBoolean()) {
            previousStatus = Status.valueOf(in.readUTF());
        } 
 
        if (in.readBoolean()) {
            actualOwner = new User();
            actualOwner.readExternal(in);
        } 
 
        if (in.readBoolean()) {
            createdBy = new User();
            createdBy.readExternal(in);
        } 
 
        if (in.readBoolean()) {
            createdOn = new Date(in.readLong());
        } 
 
        if (in.readBoolean()) {
            activationTime = new Date(in.readLong());
        } 
 
        if (in.readBoolean()) {
            expirationTime = new Date(in.readLong());
        } 
 
        skipable = in.readBoolean();
 
        if (in.readBoolean()) {
            workItemId = in.readLong();
        } 
 
        if (in.readBoolean()) {
            processInstanceId = in.readLong();
        } 
 
        if (in.readBoolean()) {
            documentAccessType = (AccessType) in.readObject();
        } 
 
        if (in.readBoolean()) {
            documentType = in.readUTF();
        } 
 
        if (in.readBoolean()) {
            documentContentId = in.readLong();
        } 
 
        if (in.readBoolean()) {
            outputAccessType = (AccessType) in.readObject();
        } 
 
        if (in.readBoolean()) {
            outputType = in.readUTF();
        } 
 
        if (in.readBoolean()) {
            outputContentId = in.readLong();
        } 
 
        if (in.readBoolean()) {
            faultName = in.readUTF();
        } 
 
        if (in.readBoolean()) {
            faultAccessType = (AccessType) in.readObject();
        } 
 
        if (in.readBoolean()) {
            faultType = in.readUTF();
        } 
 
        if (in.readBoolean()) {
            faultContentId = in.readLong();
        } 
 
        if (in.readBoolean()) {
            parentId = in.readLong();
        } 
        comments = CollectionUtils.readCommentList(in);
        attachments = CollectionUtils.readAttachmentList(in);
 
    } 
 
    /** 
     * Initializes the state of the TaskData, i.e. sets the <field>createdOn</field>, <field>activationTime</field>