com.alachisoft.ncache.serialization.standard.io.surrogates.EOFJavaSerializationSurrogate 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.
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
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.*;
import java.io.IOException;
/**
* @author Basit Anwer
*/
public class EOFJavaSerializationSurrogate extends SerializationSurrogateBase implements SerializationSurrogate, BuiltinSerializationSurrogate {
public EOFJavaSerializationSurrogate() {
super(EOFJavaSerializationSurrogate.class);
}
/**
* Does not perform any operation
*
* @param input
* @return
* @throws NCacheInstantiationException
* @throws NCacheIOException
*/
public Object readObject(NCacheObjectInput input) throws NCacheInstantiationException, NCacheIOException {
try {
return (Object) input.readShort();
} catch (IOException iOException) {
throw new NCacheIOException(iOException);
}
}
/**
* Does not perform any operation
*
* @param output
* @param graph
* @throws NCacheIOException
*/
public void writeObject(NCacheObjectOutput output, Object graph) throws NCacheIOException {
}
public void skipObject(NCacheObjectInput input) throws NCacheInstantiationException, NCacheIOException {
throw new UnsupportedOperationException("Not supported yet.");
}
}