@Override public int size() { return streamReader.available(); }
@Override public Buffer getBuffer() { return streamReader.getBufferWindow(); }
@Override public byte read() throws IOException { return streamReader.readByte(); }
@Override public void close() throws IOException { streamReader.close(); } }
@Override public GrizzlyFuture<Integer> notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler) { return streamReader.notifyCondition(condition, completionHandler); }
public SSLHandshakeCondition(StreamReader streamReader, StreamWriter streamWriter, SSLEngineConfigurator configurator, SSLEngine sslEngine, HandshakeCompletionHandler completionHandler) { this.connection = streamReader.getConnection(); this.configurator = configurator; this.sslEngine = sslEngine; this.completionHandler = completionHandler; this.streamReader = streamReader; this.streamWriter = streamWriter; }
@Override public void skip(int length) { streamReader.skip(length); }
@Override public Buffer takeBuffer() { return streamReader.takeBufferWindow(); }
@Override public boolean isBuffered() { return streamReader.isSupportBufferWindow(); }
@Override public void close() throws IOException { streamReader.close(); } }
@Override public GrizzlyFuture<Integer> notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler) { return streamReader.notifyCondition(condition, completionHandler); }
public SSLHandshakeCondition(StreamReader streamReader, StreamWriter streamWriter, SSLEngineConfigurator configurator, SSLEngine sslEngine, HandshakeCompletionHandler completionHandler) { this.connection = streamReader.getConnection(); this.configurator = configurator; this.sslEngine = sslEngine; this.completionHandler = completionHandler; this.streamReader = streamReader; this.streamWriter = streamWriter; }
@Override public void skip(int length) { streamReader.skip(length); }
@Override public Buffer takeBuffer() { return streamReader.takeBufferWindow(); }
@Override public boolean isBuffered() { return streamReader.isSupportBufferWindow(); }
@Override public int size() { return streamReader.available(); }
@Override public byte read() throws IOException { return streamReader.readByte(); }
@Override public Buffer getBuffer() { return streamReader.getBufferWindow(); }
@Override public void close() throws IOException { streamReader.close(); } }
@Override public GrizzlyFuture<Integer> notifyCondition(Condition condition, CompletionHandler<Integer> completionHandler) { return streamReader.notifyCondition(condition, completionHandler); }