Class ProxyingInputStream
java.lang.Object
java.io.InputStream
nonapi.io.github.classgraph.utils.ProxyingInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
A proxying
InputStream implementation that compiles for JDK 7 but can support the methods added in JDK 8
by reflection.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProxyingInputStream(InputStream inputStream) A proxyingInputStreamimplementation that compiles for JDK 7 but can support the methods added in JDK 8 by reflection. -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()voidmark(int readlimit) booleanintread()intread(byte[] b) intread(byte[] b, int off, int len) byte[]intreadNBytes(byte[] b, int off, int len) byte[]readNBytes(int len) voidreset()longskip(long n) voidskipNBytes(long n) toString()longtransferTo(OutputStream out) Methods inherited from class java.io.InputStream
nullInputStream
-
Field Details
-
inputStream
-
readAllBytes
-
readNBytes1
-
readNBytes3
-
skipNBytes
-
transferTo
-
-
Constructor Details
-
ProxyingInputStream
A proxyingInputStreamimplementation that compiles for JDK 7 but can support the methods added in JDK 8 by reflection.- Parameters:
inputStream- theInputStreamto wrap.
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
readAllBytes
- Overrides:
readAllBytesin classInputStream- Throws:
IOException
-
readNBytes
- Overrides:
readNBytesin classInputStream- Throws:
IOException
-
readNBytes
- Overrides:
readNBytesin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein 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
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
skipNBytes
- Overrides:
skipNBytesin classInputStream- Throws:
IOException
-
transferTo
- Overrides:
transferToin classInputStream- Throws:
IOException
-
toString
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-