private String readLine(DataInput in, int maxLength, String errorMessage) throws IOException { ByteSequence sequence = readHeaderLine(in, maxLength, errorMessage); return new String(sequence.getData(), sequence.getOffset(), sequence.getLength(), "UTF-8").trim(); }
private String readLine(DataInput in, int maxLength, String errorMessage) throws IOException { ByteSequence sequence = readHeaderLine(in, maxLength, errorMessage); return new String(sequence.getData(), sequence.getOffset(), sequence.getLength(), "UTF-8").trim(); }
private String readLine(DataInput in, int maxLength, String errorMessage) throws IOException { ByteSequence sequence = readHeaderLine(in, maxLength, errorMessage); return new String(sequence.getData(), sequence.getOffset(), sequence.getLength(), "UTF-8").trim(); }
protected HashMap<String, String> parseHeaders(DataInput in, AtomicLong frameSize) throws IOException { HashMap<String, String> headers = new HashMap<>(25); while (true) { ByteSequence line = readHeaderLine(in, MAX_HEADER_LENGTH, "The maximum header length was exceeded"); if (line != null && line.length > 1) {
protected HashMap<String, String> parseHeaders(DataInput in, AtomicLong frameSize) throws IOException { HashMap<String, String> headers = new HashMap<>(25); while (true) { ByteSequence line = readHeaderLine(in, MAX_HEADER_LENGTH, "The maximum header length was exceeded"); if (line != null && line.length > 1) {
protected HashMap<String, String> parseHeaders(DataInput in, AtomicLong frameSize) throws IOException { HashMap<String, String> headers = new HashMap<>(25); while (true) { ByteSequence line = readHeaderLine(in, MAX_HEADER_LENGTH, "The maximum header length was exceeded"); if (line != null && line.length > 1) {