Class AbstractBlobContainerRetriesTestCase.ZeroInputStream
java.lang.Object
java.io.InputStream
org.elasticsearch.repositories.blobstore.AbstractBlobContainerRetriesTestCase.ZeroInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
- Enclosing class:
AbstractBlobContainerRetriesTestCase
A resettable InputStream that only serves zeros.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, read, readAllBytes, readNBytes, readNBytes, skip, skipNBytes, transferTo
-
Constructor Details
-
ZeroInputStream
public ZeroInputStream(long length)
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin 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
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream
-