public class OSSInputStream extends SeekableInputStream
| Constructor and Description |
|---|
OSSInputStream(com.aliyun.oss.OSS client,
OSSURI uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
finalize() |
long |
getPos()
Return the current position in the InputStream.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
seek(long newPos)
Seek to a new position in the InputStream.
|
public OSSInputStream(com.aliyun.oss.OSS client,
OSSURI uri)
public long getPos()
SeekableInputStreamgetPos in class SeekableInputStreampublic void seek(long newPos)
SeekableInputStreamseek in class SeekableInputStreamnewPos - the new position to seek topublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable