OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.net; | 5 package org.chromium.net; |
6 | 6 |
7 import java.io.IOException; | 7 import java.io.IOException; |
8 import java.nio.ByteBuffer; | 8 import java.nio.ByteBuffer; |
9 import java.nio.channels.WritableByteChannel; | 9 import java.nio.channels.WritableByteChannel; |
10 import java.util.Map; | 10 import java.util.Map; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 @Override | 179 @Override |
180 public ByteBuffer getByteBuffer() { | 180 public ByteBuffer getByteBuffer() { |
181 return ((ChunkedWritableByteChannel)getSink()).getByteBuffer(); | 181 return ((ChunkedWritableByteChannel)getSink()).getByteBuffer(); |
182 } | 182 } |
183 | 183 |
184 @Override | 184 @Override |
185 public byte[] getResponseAsBytes() { | 185 public byte[] getResponseAsBytes() { |
186 return ((ChunkedWritableByteChannel)getSink()).getBytes(); | 186 return ((ChunkedWritableByteChannel)getSink()).getBytes(); |
187 } | 187 } |
188 } | 188 } |
OLD | NEW |