Class LazyInputStream
java.lang.Object
java.io.InputStream
org.apache.sling.jcr.resource.internal.helper.LazyInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
Lazily acquired InputStream which only accesses the JCR Value InputStream if
data is to be read from the stream.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
Constructor Details
-
LazyInputStream
public LazyInputStream(@NotNull @NotNull javax.jcr.Value value)
-
-
Method Details
-
close
Closes the input stream if acquired otherwise does nothing.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-