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

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

There is a newer version: 5.3.3
Show newest version
/*
 * 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.");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy