/*
 * Copyright (C) The Apache Software Foundation. All rights reserved.
 *
 * This software is published under the terms of the Apache Software License
 * version 1.1, a copy of which has been included with this distribution in
 * the LICENSE.txt file.
 */
package org.apache.commons.altrmi.client.impl.socket;



import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import org.apache.commons.altrmi.client.impl.stream.CallbackEnabledClientCustomStreamReadWriter;
import org.apache.commons.altrmi.client.impl.stream.ClientStreamReadWriter;
import org.apache.commons.altrmi.common.AltrmiConnectionException;


/**
 * Class CallbackEnabledCustomSocketStreamInvocationHandler
 *
 *
 * @author Vinay Chandrasekharan<a href="mailto:vinay_chandran@users.sourceforge.net">vinay_chandran@users.sourceforge.net</a>
 * @version $Revision: 1.0 $
 */
public final class CallbackEnabledCustomSocketStreamInvocationHandler
        extends AbstractSocketStreamInvocationHandler {

	/*
	 * @see AbstractSocketStreamInvocationHandler#AbstractSocketStreamInvocationHandler(String, int, ClassLoader)
	 */
    public CallbackEnabledCustomSocketStreamInvocationHandler(String host, int port, ClassLoader classLoader)
            throws AltrmiConnectionException {
        super(host, port, classLoader);
    }

	/* 
	 * @see AbstractSocketStreamInvocationHandler#createClientStreamReadWriter(InputStream, OutputStream)
	 */
    protected ClientStreamReadWriter createClientStreamReadWriter(
            InputStream in, OutputStream out) throws IOException {
        return new CallbackEnabledClientCustomStreamReadWriter(in, out, mInterfacesClassLoader);
    }
}
