public class ContentClaimInputStream extends InputStream
mark(int)/reset() in order to re-read content without buffering it.| Modifier and Type | Field and Description |
|---|---|
private long |
bytesConsumed |
private long |
claimOffset |
private ContentClaim |
contentClaim |
private ContentRepository |
contentRepository |
private long |
currentOffset |
private InputStream |
delegate |
private long |
markOffset |
| Constructor and Description |
|---|
ContentClaimInputStream(ContentRepository contentRepository,
ContentClaim contentClaim,
long claimOffset) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
private void |
formDelegate() |
long |
getBytesConsumed() |
long |
getCurrentOffset() |
private InputStream |
getDelegate() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
private final ContentRepository contentRepository
private final ContentClaim contentClaim
private final long claimOffset
private InputStream delegate
private long bytesConsumed
private long currentOffset
private long markOffset
public ContentClaimInputStream(ContentRepository contentRepository, ContentClaim contentClaim, long claimOffset)
private InputStream getDelegate() throws IOException
IOExceptionpublic long getBytesConsumed()
public long getCurrentOffset()
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic int available()
throws IOException
available in class InputStreamIOExceptionpublic boolean markSupported()
markSupported in class InputStreampublic void mark(int readlimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionprivate void formDelegate()
throws IOException
IOExceptionCopyright © 2021 Apache NiFi Project. All rights reserved.