| 179 | } |
| 180 | |
| 181 | private static class ByteUrlConnection extends URLConnection { |
| 182 | private final InputStream inputStream; |
| 183 | |
| 184 | public ByteUrlConnection(URL url, InputStream inputStream) { |
| 185 | super(url); |
| 186 | this.inputStream = inputStream; |
| 187 | } |
| 188 | |
| 189 | @Override |
| 190 | public void connect() throws IOException { |
| 191 | } |
| 192 | |
| 193 | @Override |
| 194 | public InputStream getInputStream() throws IOException { |
| 195 | return inputStream; |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | private static class CloseIgnoringInputStream extends BufferedInputStream { |
| 200 | public CloseIgnoringInputStream(InputStream in) { |
nothing calls this directly
no outgoing calls
no test coverage detected