Mercurial Hosting > luan
comparison src/luan/webserver/ResponseOutputStream.java @ 1160:4beabb087be6
add http/impl
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 05 Feb 2018 22:33:59 -0700 |
parents | c123ee15f99b |
children |
comparison
equal
deleted
inserted
replaced
1159:3ef883468fd0 | 1160:4beabb087be6 |
---|---|
8 // plenty of room for improvement | 8 // plenty of room for improvement |
9 public class ResponseOutputStream extends ByteArrayOutputStream { | 9 public class ResponseOutputStream extends ByteArrayOutputStream { |
10 private final Response response; | 10 private final Response response; |
11 | 11 |
12 public ResponseOutputStream(Response response) { | 12 public ResponseOutputStream(Response response) { |
13 if(response==null) throw new NullPointerException(); | |
13 this.response = response; | 14 this.response = response; |
14 } | 15 } |
15 | 16 |
16 @Override public void close() throws IOException { | 17 @Override public void close() throws IOException { |
17 super.close(); | 18 super.close(); |