package org.apache.tomcat.websocket;
import java.io.IOException;
import java.nio.ByteBuffer;
import javax.websocket.Extension;
public interface Transformation {
<BUG>boolean getMoreData(byte opCode, int rsv, ByteBuffer dest) throws IOException;
</BUG>
boolean validateRsv(int rsv, byte opCode);
Extension getExtensionResponse();
void setNext(Transformation t);

package org.apache.tomcat.websocket;
import java.io.IOException;
import java.nio.ByteBuffer;
import javax.websocket.Extension;
public interface Transformation {
TransformationResult getMoreData(byte opCode, int rsv, ByteBuffer dest) throws IOException;
boolean validateRsv(int rsv, byte opCode);
Extension getExtensionResponse();
void setNext(Transformation t);
