OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 package org.chromium.net.urlconnection; |
| 6 |
| 7 import org.chromium.net.UploadDataProvider; |
| 8 |
| 9 import java.io.IOException; |
| 10 import java.io.OutputStream; |
| 11 |
| 12 /** |
| 13 * An abstract class of {@link OutputStream} that concrete implementations must |
| 14 * extend in order to be used in {@link CronetHttpURLConnection}. |
| 15 */ |
| 16 abstract class CronetOutputStream extends OutputStream implements UploadDataProv
ider { |
| 17 /** |
| 18 * Tells the underlying implementation that connection has been established. |
| 19 * Used in {@link CronetHttpURLConnection}. |
| 20 */ |
| 21 abstract void setConnected() throws IOException; |
| 22 |
| 23 /** |
| 24 * Checks whether content received is less than Content-Length. |
| 25 * Used in {@link CronetHttpURLConnection}. |
| 26 */ |
| 27 abstract void checkReceivedEnoughContent() throws IOException; |
| 28 } |
OLD | NEW |