public class S3AInputStream extends FSInputStream
| Modifier and Type | Field and Description |
|---|---|
static long |
CLOSE_THRESHOLD |
static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
S3AInputStream(String bucket,
String key,
long contentLength,
com.amazonaws.services.s3.AmazonS3Client client,
FileSystem.Statistics stats) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
long |
getPos() |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] buf,
int off,
int len) |
void |
seek(long pos) |
boolean |
seekToNewSource(long targetPos) |
read, readFully, readFullymark, read, reset, skippublic static final org.slf4j.Logger LOG
public static final long CLOSE_THRESHOLD
public S3AInputStream(String bucket, String key, long contentLength, com.amazonaws.services.s3.AmazonS3Client client, FileSystem.Statistics stats)
public long getPos()
throws IOException
getPos in interface SeekablegetPos in class FSInputStreamIOExceptionpublic void seek(long pos)
throws IOException
seek in interface Seekableseek in class FSInputStreamIOExceptionpublic boolean seekToNewSource(long targetPos)
throws IOException
seekToNewSource in interface SeekableseekToNewSource in class FSInputStreamIOExceptionpublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buf,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreamCopyright © 2018 CERN. All Rights Reserved.