| 构造器和说明 |
|---|
ChannelProducer(String location,
long offset,
long size) |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
contentLength() |
long |
lastModified() |
int |
produce(File file) |
void |
random_read_large(String path,
long position,
long size,
Writer writer) |
int |
random_read(String path,
long offset,
int size,
OutputStream out) |
void |
random_write(String path,
long offset,
long size,
byte[] data) |
InputStream |
stream() |
public ChannelProducer(String location, long offset, long size)
public long contentLength()
throws IOException
contentLength 在接口中 IProducerIOExceptionpublic long lastModified()
throws IOException
lastModified 在接口中 IProducerIOExceptionpublic InputStream stream() throws IOException
stream 在接口中 IProducerIOExceptionpublic int produce(File file) throws IOException
produce 在接口中 IProducerIOExceptionpublic void random_read_large(String path, long position, long size, Writer writer)
public void random_write(String path, long offset, long size, byte[] data)
public int random_read(String path, long offset, int size, OutputStream out)
Copyright (c) 2002-2020 Luther Inc.