public abstract class ForwardSource extends Object implements Source
Source| Constructor and Description |
|---|
ForwardSource(Source delegate) |
public ForwardSource(Source delegate)
public final Source delegate()
public long read(Buffer sink, long byteCount) throws IOException
SourcebyteCount字节, 并将它们
附加到sink。返回读取的字节数,如果该源已耗尽,则返回-1read in interface Sourcesink - 缓冲byteCount - 长度大小IOException - IOException IOException.public void close()
throws IOException
Sourceclose in interface Closeableclose in interface AutoCloseableclose in interface SourceIOException - IOException IOException.Copyright © 2019. All rights reserved.