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 proxyingInputStream
implementation that compiles for JDK 7 but can support the methods added in JDK 8 by reflection. -
Method Summary
Modifier and TypeMethodDescriptionint
void
close()
void
mark
(int readlimit) boolean
int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) byte[]
int
readNBytes
(byte[] b, int off, int len) byte[]
readNBytes
(int len) void
reset()
long
skip
(long n) void
skipNBytes
(long n) toString()
long
transferTo
(OutputStream out) Methods inherited from class java.io.InputStream
nullInputStream
-
Field Details
-
inputStream
-
readAllBytes
-
readNBytes1
-
readNBytes3
-
skipNBytes
-
transferTo
-
-
Constructor Details
-
ProxyingInputStream
A proxyingInputStream
implementation that compiles for JDK 7 but can support the methods added in JDK 8 by reflection.- Parameters:
inputStream
- theInputStream
to wrap.
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
readAllBytes
- Overrides:
readAllBytes
in classInputStream
- Throws:
IOException
-
readNBytes
- Overrides:
readNBytes
in classInputStream
- Throws:
IOException
-
readNBytes
- Overrides:
readNBytes
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStream
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
skipNBytes
- Overrides:
skipNBytes
in classInputStream
- Throws:
IOException
-
transferTo
- Overrides:
transferTo
in classInputStream
- Throws:
IOException
-
toString
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-