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.ProxyInputStream
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class org.apache.commons.io.input.ProxyInputStream
IOException
public long skip(long ln) throws IOException
skip
in class org.apache.commons.io.input.ProxyInputStream
IOException
public int available() throws IOException
available
in class org.apache.commons.io.input.ProxyInputStream
IOException
public void mark(int readlimit)
mark
in class org.apache.commons.io.input.ProxyInputStream
public void reset() throws IOException
reset
in class org.apache.commons.io.input.ProxyInputStream
IOException
public boolean markSupported()
markSupported
in class org.apache.commons.io.input.ProxyInputStream
Copyright © 2018 Nuxeo. All rights reserved.