Code example for ObjectInput

Methods: readInt

0
    public Context(final int state) {
        this.state = state;
    } 
 
    public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
        state   = in.readInt();
    } 
 
    public void writeExternal(ObjectOutput out) throws IOException {
        out.writeInt(state);
    } 
 
    public void setState(final int state) {
        this.state = state;
    } 
 
    public boolean isState(final int state) {
        return this.state == state;
    } 
 
Connect your IDE to all the code out there  Get Codota for Java