Mercurial Hosting > luan
comparison src/org/eclipse/jetty/server/HttpWriter.java @ 983:23ec25435b8c
simplify AbstractGenerator
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sun, 16 Oct 2016 22:58:41 -0600 |
parents | 3428c60d7cfc |
children | 7b0fa315e835 |
comparison
equal
deleted
inserted
replaced
982:dbecd7faa1f5 | 983:23ec25435b8c |
---|---|
20 | 20 |
21 import java.io.IOException; | 21 import java.io.IOException; |
22 import java.io.OutputStreamWriter; | 22 import java.io.OutputStreamWriter; |
23 import java.io.Writer; | 23 import java.io.Writer; |
24 | 24 |
25 import org.eclipse.jetty.http.AbstractGenerator; | 25 import org.eclipse.jetty.http.HttpGenerator; |
26 import org.eclipse.jetty.util.ByteArrayOutputStream2; | 26 import org.eclipse.jetty.util.ByteArrayOutputStream2; |
27 import org.eclipse.jetty.util.StringUtil; | 27 import org.eclipse.jetty.util.StringUtil; |
28 | 28 |
29 /** OutputWriter. | 29 /** OutputWriter. |
30 * A writer that can wrap a {@link HttpOutput} stream and provide | 30 * A writer that can wrap a {@link HttpOutput} stream and provide |
41 private static final int WRITE_CONV = 0; | 41 private static final int WRITE_CONV = 0; |
42 private static final int WRITE_ISO1 = 1; | 42 private static final int WRITE_ISO1 = 1; |
43 private static final int WRITE_UTF8 = 2; | 43 private static final int WRITE_UTF8 = 2; |
44 | 44 |
45 final HttpOutput _out; | 45 final HttpOutput _out; |
46 final AbstractGenerator _generator; | 46 final HttpGenerator _generator; |
47 int _writeMode; | 47 int _writeMode; |
48 int _surrogate; | 48 int _surrogate; |
49 | 49 |
50 /* ------------------------------------------------------------ */ | 50 /* ------------------------------------------------------------ */ |
51 public HttpWriter(HttpOutput out) | 51 public HttpWriter(HttpOutput out) |