Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/HttpOutput.java @ 983:23ec25435b8c
simplify AbstractGenerator
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 16 Oct 2016 22:58:41 -0600 |
parents | dbecd7faa1f5 |
children |
comparison
equal
deleted
inserted
replaced
982:dbecd7faa1f5 | 983:23ec25435b8c |
---|---|
21 import java.io.IOException; | 21 import java.io.IOException; |
22 import java.io.Writer; | 22 import java.io.Writer; |
23 | 23 |
24 import javax.servlet.ServletOutputStream; | 24 import javax.servlet.ServletOutputStream; |
25 | 25 |
26 import org.eclipse.jetty.http.AbstractGenerator; | |
27 import org.eclipse.jetty.http.HttpGenerator; | 26 import org.eclipse.jetty.http.HttpGenerator; |
28 import org.eclipse.jetty.io.Buffer; | 27 import org.eclipse.jetty.io.Buffer; |
29 import org.eclipse.jetty.io.ByteArrayBuffer; | 28 import org.eclipse.jetty.io.ByteArrayBuffer; |
30 import org.eclipse.jetty.io.EofException; | 29 import org.eclipse.jetty.io.EofException; |
31 import org.eclipse.jetty.util.ByteArrayOutputStream2; | 30 import org.eclipse.jetty.util.ByteArrayOutputStream2; |
34 * | 33 * |
35 * <p> | 34 * <p> |
36 * Implements {@link javax.servlet.ServletOutputStream} from the <code>javax.servlet</code> package. | 35 * Implements {@link javax.servlet.ServletOutputStream} from the <code>javax.servlet</code> package. |
37 * </p> | 36 * </p> |
38 * A {@link ServletOutputStream} implementation that writes content | 37 * A {@link ServletOutputStream} implementation that writes content |
39 * to a {@link AbstractGenerator}. The class is designed to be reused | 38 * to a {@link HttpGenerator}. The class is designed to be reused |
40 * and can be reopened after a close. | 39 * and can be reopened after a close. |
41 */ | 40 */ |
42 public class HttpOutput extends ServletOutputStream | 41 public class HttpOutput extends ServletOutputStream |
43 { | 42 { |
44 protected final AbstractHttpConnection _connection; | 43 protected final AbstractHttpConnection _connection; |
45 protected final AbstractGenerator _generator; | 44 protected final HttpGenerator _generator; |
46 private boolean _closed; | 45 private boolean _closed; |
47 private ByteArrayBuffer _onebyte; | 46 private ByteArrayBuffer _onebyte; |
48 | 47 |
49 // These are held here for reuse by Writer | 48 // These are held here for reuse by Writer |
50 String _characterEncoding; | 49 String _characterEncoding; |