comparison src/org/eclipse/jetty/http/HttpFields.java @ 1048:2b769da7f67d

remove Buffer
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 07 Nov 2016 23:15:42 -0700
parents eca26899c4bc
children bbbda7c6e8ec
comparison
equal deleted inserted replaced
1047:1accf965d51a 1048:2b769da7f67d
37 import java.util.StringTokenizer; 37 import java.util.StringTokenizer;
38 import java.util.TimeZone; 38 import java.util.TimeZone;
39 import java.util.concurrent.ConcurrentHashMap; 39 import java.util.concurrent.ConcurrentHashMap;
40 import java.util.concurrent.ConcurrentMap; 40 import java.util.concurrent.ConcurrentMap;
41 41
42 import org.eclipse.jetty.io.Buffer; 42 import org.eclipse.jetty.io.JBuffer;
43 import org.eclipse.jetty.io.BufferUtil; 43 import org.eclipse.jetty.io.BufferUtil;
44 import org.eclipse.jetty.util.LazyList; 44 import org.eclipse.jetty.util.LazyList;
45 import org.eclipse.jetty.util.QuotedStringTokenizer; 45 import org.eclipse.jetty.util.QuotedStringTokenizer;
46 import org.eclipse.jetty.util.StringUtil; 46 import org.eclipse.jetty.util.StringUtil;
47 import org.slf4j.Logger; 47 import org.slf4j.Logger;
941 _name = name; 941 _name = name;
942 _value = value; 942 _value = value;
943 _next = null; 943 _next = null;
944 } 944 }
945 945
946 public void putTo(Buffer buffer) throws IOException 946 public void putTo(JBuffer buffer) throws IOException
947 { 947 {
948 byte[] nameBytes = StringUtil.getBytes(_name); 948 byte[] nameBytes = StringUtil.getBytes(_name);
949 if (getNameOrdinal() >=0 ) 949 if (getNameOrdinal() >=0 )
950 buffer.put(nameBytes); 950 buffer.put(nameBytes);
951 else 951 else