java.lang.Object
java.io.InputStream
org.refcodes.io.TimeoutInputStream
org.refcodes.io.TimeoutInputStream.DummyTimeoutInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.refcodes.mixin.ReadTimeoutMillisAccessor
- Enclosing class:
- TimeoutInputStream
Dummy implementation of a
TimeoutInputStream
directly delegating
to the given InputStream
to test whether the
TimeoutInputStream
has any latencies compared to the
TimeoutInputStream.DummyTimeoutInputStream
.-
Nested Class Summary
Nested classes/interfaces inherited from class org.refcodes.io.TimeoutInputStream
TimeoutInputStream.DummyTimeoutInputStream
Nested classes/interfaces inherited from interface org.refcodes.mixin.ReadTimeoutMillisAccessor
org.refcodes.mixin.ReadTimeoutMillisAccessor.ReadTimeoutMillisBuilder<B extends org.refcodes.mixin.ReadTimeoutMillisAccessor.ReadTimeoutMillisBuilder<B>>, org.refcodes.mixin.ReadTimeoutMillisAccessor.ReadTimeoutMillisMutator, org.refcodes.mixin.ReadTimeoutMillisAccessor.ReadTimeoutMillisProperty
-
Constructor Summary
ConstructorsConstructorDescriptionDummyTimeoutInputStream
(InputStream aInputStream) Instantiates a new dummy timeout input stream. -
Method Summary
Modifier and TypeMethodDescriptionint
void
close()
boolean
int
hashCode()
void
mark
(int aReadlimit) boolean
int
read()
int
read
(byte[] aB) int
read
(byte[] aB, int aOff, int aLen) byte[]
int
readNBytes
(byte[] b, int off, int len) byte[]
readNBytes
(int aArg0) void
reset()
long
skip
(long aArg0) toString()
long
transferTo
(OutputStream aOut) Methods inherited from class org.refcodes.io.TimeoutInputStream
getReadTimeoutMillis, read, read, read, readNBytes, readNBytes
Methods inherited from class java.io.InputStream
nullInputStream, skipNBytes
-
Constructor Details
-
DummyTimeoutInputStream
Instantiates a new dummy timeout input stream.- Parameters:
aInputStream
- the input stream
-
-
Method Details
-
available
- Overrides:
available
in classTimeoutInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classTimeoutInputStream
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
mark
public void mark(int aReadlimit) - Overrides:
mark
in classTimeoutInputStream
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classTimeoutInputStream
-
read
- Overrides:
read
in classTimeoutInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classTimeoutInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classTimeoutInputStream
- Throws:
IOException
-
readAllBytes
- Overrides:
readAllBytes
in classInputStream
- Throws:
IOException
-
readNBytes
- Overrides:
readNBytes
in classTimeoutInputStream
- Throws:
IOException
-
readNBytes
- Overrides:
readNBytes
in classTimeoutInputStream
- Throws:
IOException
-
reset
- Overrides:
reset
in classTimeoutInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classTimeoutInputStream
- Throws:
IOException
-
toString
-
transferTo
- Overrides:
transferTo
in classInputStream
- Throws:
IOException
-