public class DownloadOutputStreamAdapter
extends java.lang.Object
implements com.liulishuo.okdownload.core.file.DownloadOutputStream
| Modifier and Type | Class and Description |
|---|---|
static class |
DownloadOutputStreamAdapter.Factory |
| Constructor and Description |
|---|
DownloadOutputStreamAdapter(FileDownloadOutputStream outputStream) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flushAndSync() |
void |
seek(long offset) |
void |
setLength(long newLength) |
void |
write(byte[] b,
int off,
int len) |
public DownloadOutputStreamAdapter(@NonNull
FileDownloadOutputStream outputStream)
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in interface com.liulishuo.okdownload.core.file.DownloadOutputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface com.liulishuo.okdownload.core.file.DownloadOutputStreamjava.io.IOExceptionpublic void flushAndSync()
throws java.io.IOException
flushAndSync in interface com.liulishuo.okdownload.core.file.DownloadOutputStreamjava.io.IOExceptionpublic void seek(long offset)
throws java.io.IOException
seek in interface com.liulishuo.okdownload.core.file.DownloadOutputStreamjava.io.IOExceptionpublic void setLength(long newLength)
throws java.io.IOException
setLength in interface com.liulishuo.okdownload.core.file.DownloadOutputStreamjava.io.IOException