Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/AbstractHttpConnection.java @ 1068:9d357b9e4bcb
fix BufferUtil.newBuffer()
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 10 Nov 2016 00:23:05 -0700 |
parents | 158d1e6ac17f |
children | a44fc6b53757 |
comparison
equal
deleted
inserted
replaced
1067:56b515be91e1 | 1068:9d357b9e4bcb |
---|---|
736 public final void write(int b) throws IOException | 736 public final void write(int b) throws IOException |
737 { | 737 { |
738 if (_onebyte==null) | 738 if (_onebyte==null) |
739 _onebyte = BufferUtil.newBuffer(1); | 739 _onebyte = BufferUtil.newBuffer(1); |
740 else | 740 else |
741 _onebyte.clearJ(); | 741 _onebyte.clear(); |
742 _onebyte.put((byte)b); | 742 _onebyte.putQ((byte)b); |
743 write(_onebyte); | 743 write(_onebyte); |
744 } | 744 } |
745 | 745 |
746 private void write(JBuffer buffer) throws IOException | 746 private void write(JBuffer buffer) throws IOException |
747 { | 747 { |