/*
 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 * 
 * $Id$
 */

package com.sun.ts.tests.websocket.ee.javax.websocket.remoteendpoint.usercoder;

import java.io.IOException;
import java.io.OutputStream;

import javax.websocket.Decoder;
import javax.websocket.EncodeException;
import javax.websocket.Encoder;

public abstract class CoderSuperClassBinaryStream<T> extends CoderSuperClass
		implements Encoder.BinaryStream<T>, Decoder.BinaryStream<T> {

	@Override
	public void encode(T object, OutputStream os) throws EncodeException,
			IOException {
		os.write(COMMON_CODED_STRING.getBytes());
		os.close();
	}

}
