public static class NuxeoContentStream.LazyInputStream extends org.apache.commons.io.input.ProxyInputStream
InputStream that fetches the actual stream from a Supplier on first use.| Modifier and Type | Field and Description | 
|---|---|
protected Supplier<InputStream> | 
supplier  | 
in| Constructor and Description | 
|---|
LazyInputStream(Supplier<InputStream> supplier)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
available()  | 
protected void | 
beforeRead(int n)  | 
void | 
close()  | 
void | 
mark(int readlimit)  | 
boolean | 
markSupported()  | 
void | 
reset()  | 
long | 
skip(long ln)  | 
protected Supplier<InputStream> supplier
public LazyInputStream(Supplier<InputStream> supplier)
protected void beforeRead(int n)
beforeRead in class org.apache.commons.io.input.ProxyInputStreampublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic long skip(long ln) throws IOException
skip in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic int available() throws IOException
available in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic void mark(int readlimit)
mark in class org.apache.commons.io.input.ProxyInputStreampublic void reset() throws IOException
reset in class org.apache.commons.io.input.ProxyInputStreamIOExceptionpublic boolean markSupported()
markSupported in class org.apache.commons.io.input.ProxyInputStreamCopyright © 2019 Nuxeo. All rights reserved.