< prev index next >
src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/internal/hpack/StringReader.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
+ * 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,10 +22,11 @@
* 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,11 +50,11 @@
private int state = NEW;
private boolean huffman;
private int remainingLength;
- boolean read(ByteBuffer input, Appendable output) {
+ boolean read(ByteBuffer input, Appendable output) throws IOException {
if (state == DONE) {
return true;
}
if (!input.hasRemaining()) {
return false;
< prev index next >