DataSourceCallback: fix java docs

Test: make offline-sdk-docs
Bug: 112549021
Change-Id: I4c082f3e9547a768f9327cfaf874f3bba0dab8bf
This commit is contained in:
Wei Jia
2018-12-14 11:16:30 -08:00
parent 159c83c57b
commit acf2796db9
2 changed files with 2 additions and 2 deletions

View File

@@ -47,7 +47,7 @@ public abstract class DataSourceCallback implements Closeable {
* @param offset the offset within buffer to read the data into.
* @param size the number of bytes to read.
* @throws IOException on fatal errors.
* @return the number of bytes read, or -1 if there was an error.
* @return the number of bytes read, or -1 if end of stream is reached.
*/
public abstract int readAt(long position, byte[] buffer, int offset, int size)
throws IOException;

View File

@@ -46,7 +46,7 @@ public abstract class MediaDataSource implements Closeable {
* @param offset the offset within buffer to read the data into.
* @param size the number of bytes to read.
* @throws IOException on fatal errors.
* @return the number of bytes read, or -1 if there was an error.
* @return the number of bytes read, or -1 if end of stream is reached.
*/
public abstract int readAt(long position, byte[] buffer, int offset, int size)
throws IOException;