< prev index next >
src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/hpack/StringReader.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 22,31 ****
--- 22,32 ----
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package jdk.incubator.http.internal.hpack;
+ import java.io.IOException;
import java.nio.ByteBuffer;
import java.util.Arrays;
//
// 0 1 2 3 4 5 6 7
*** 49,59 ****
private int state = NEW;
private boolean huffman;
private int remainingLength;
! boolean read(ByteBuffer input, Appendable output) {
if (state == DONE) {
return true;
}
if (!input.hasRemaining()) {
return false;
--- 50,60 ----
private int state = NEW;
private boolean huffman;
private int remainingLength;
! boolean read(ByteBuffer input, Appendable output) throws IOException {
if (state == DONE) {
return true;
}
if (!input.hasRemaining()) {
return false;
< prev index next >