Code example for ObjectOutput

Methods: writeUTFwriteObject

0
    public boolean isLiteralText() { 
        return this.target.isLiteralText();
    } 
 
    public void writeExternal(ObjectOutput out) throws IOException {
        out.writeUTF(this.mark);
        out.writeObject(this.target);
    } 
 
    public void readExternal(ObjectInput in) throws IOException,
            ClassNotFoundException { 
        this.mark = in.readUTF();
        this.target = (MethodExpression) in.readObject();
    } 
 
} 
Experience pair programming with AI  Get Codota for Java