Code example for ObjectInput

Methods: readBooleanreadObject

0
    public FactTemplateObjectType(final FactTemplate factTemplate) {
        this.factTemplate = factTemplate;
    } 
 
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
        factTemplate    = (FactTemplate)in.readObject();
        isEvent         = in.readBoolean();
    } 
 
    public void writeExternal(ObjectOutput out) throws IOException {
        out.writeObject(factTemplate);
        out.writeBoolean(isEvent);
 
    } 
    // ------------------------------------------------------------ 
    // Instance methods 
    // ------------------------------------------------------------ 
 
    /** 
     * Return the Fact Template.