com.alachisoft.ncache.serialization.standard.io.surrogates.SkipSerializationSurrogate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-serialization Show documentation
Show all versions of nc-serialization Show documentation
Internal package of Alachisoft.
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 {
}
}