java.lang.Object
java.io.InputStream
com.aoapps.sql.wrapper.InputStreamWrapper
com.aoapps.sql.failfast.FailFastInputStream
- All Implemented Interfaces:
NoClose
,Wrapper
,Closeable
,AutoCloseable
,Wrapper
- Author:
- AO Industries, Inc.
-
Constructor Summary
ConstructorDescriptionFailFastInputStream
(FailFastConnectionImpl failFastConnection, InputStream wrapped) -
Method Summary
Modifier and TypeMethodDescriptionint
void
close()
protected FailFastConnectionImpl
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) long
transferTo
(OutputStream out) Methods inherited from class com.aoapps.sql.wrapper.InputStreamWrapper
getWrapped, isNoClose, toString
Methods inherited from class java.io.InputStream
nullInputStream
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.aoapps.sql.wrapper.Wrapper
isWrapperFor, unwrap
-
Constructor Details
-
FailFastInputStream
-
-
Method Details
-
getConnectionWrapper
- Overrides:
getConnectionWrapper
in classInputStreamWrapper
-
read
- Overrides:
read
in classInputStreamWrapper
- Throws:
IOException
-
read
- Overrides:
read
in classInputStreamWrapper
- Throws:
IOException
-
read
- Overrides:
read
in classInputStreamWrapper
- Throws:
IOException
-
readAllBytes
- Overrides:
readAllBytes
in classInputStream
- Throws:
IOException
-
readNBytes
- Overrides:
readNBytes
in classInputStream
- Throws:
IOException
-
readNBytes
- Overrides:
readNBytes
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStreamWrapper
- Throws:
IOException
-
available
- Overrides:
available
in classInputStreamWrapper
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceNoClose
- Overrides:
close
in classInputStreamWrapper
- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStreamWrapper
-
reset
- Overrides:
reset
in classInputStreamWrapper
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStreamWrapper
-
transferTo
- Overrides:
transferTo
in classInputStream
- Throws:
IOException
-