All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alachisoft.ncache.serialization.standard.io.surrogates.SkipSerializationSurrogate Maven / Gradle / Ivy

There is a newer version: 5.3.3
Show newest version
package com.alachisoft.ncache.serialization.standard.io.surrogates;

import com.alachisoft.ncache.serialization.core.io.NCacheObjectInput;
import com.alachisoft.ncache.serialization.core.io.NCacheObjectOutput;
import com.alachisoft.ncache.serialization.core.io.surrogates.*;

/**
 * @author Basit Anwer
 */
public class SkipSerializationSurrogate extends SerializationSurrogateBase implements SerializationSurrogate, BuiltinSerializationSurrogate {
    public SkipSerializationSurrogate() {
        super(SkipSerializationSurrogate.class);
    }

    /**
     * Returns 'this'
     *
     * @param input
     * @return
     * @throws NCacheInstantiationException
     * @throws NCacheIOException
     */
    public Object readObject(NCacheObjectInput input) throws NCacheInstantiationException, NCacheIOException {
        return (Object) this;
    }

    /**
     * Does not perform any operation
     *
     * @param output
     * @param graph
     * @throws NCacheIOException
     */
    public void writeObject(NCacheObjectOutput output, Object graph) throws NCacheIOException {

    }

    /**
     * Does not perform any Operation
     *
     * @param input
     * @throws NCacheInstantiationException
     * @throws NCacheIOException
     */
    public void skipObject(NCacheObjectInput input) throws NCacheInstantiationException, NCacheIOException {

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy