Class NuxeoContentStream.LazyInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.apache.commons.io.input.ProxyInputStream
org.nuxeo.ecm.core.opencmis.impl.server.NuxeoContentStream.LazyInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
- NuxeoContentStream
public static class NuxeoContentStream.LazyInputStream
extends org.apache.commons.io.input.ProxyInputStream
An
InputStream that fetches the actual stream from a Supplier on first use.- Since:
- 7.10
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.commons.io.input.ProxyInputStream
org.apache.commons.io.input.ProxyInputStream.AbstractBuilder<T extends Object,B extends org.apache.commons.io.build.AbstractStreamBuilder<T, B>> -
Field Summary
FieldsFields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprotected voidbeforeRead(int n) voidclose()voidmark(int readlimit) booleanvoidreset()longskip(long ln) Methods inherited from class org.apache.commons.io.input.ProxyInputStream
afterRead, handleIOException, read, read, read, setReference, unwrapMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
supplier
-
-
Constructor Details
-
LazyInputStream
-
-
Method Details
-
beforeRead
protected void beforeRead(int n) - Overrides:
beforeReadin classorg.apache.commons.io.input.ProxyInputStream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classorg.apache.commons.io.input.ProxyInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classorg.apache.commons.io.input.ProxyInputStream- Throws:
IOException
-
available
- Overrides:
availablein classorg.apache.commons.io.input.ProxyInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classorg.apache.commons.io.input.ProxyInputStream
-
reset
- Overrides:
resetin classorg.apache.commons.io.input.ProxyInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classorg.apache.commons.io.input.ProxyInputStream
-