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
ConstructorsConstructorDescriptionFailFastInputStream(FailFastConnectionImpl failFastConnection, InputStream wrapped) -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()protected FailFastConnectionImplvoidmark(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) longtransferTo(OutputStream out) Methods inherited from class com.aoapps.sql.wrapper.InputStreamWrapper
getWrapped, isNoClose, toStringMethods inherited from class java.io.InputStream
nullInputStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.aoapps.sql.wrapper.Wrapper
isWrapperFor, unwrap
-
Constructor Details
-
FailFastInputStream
-
-
Method Details
-
getConnectionWrapper
- Overrides:
getConnectionWrapperin classInputStreamWrapper
-
read
- Overrides:
readin classInputStreamWrapper- Throws:
IOException
-
read
- Overrides:
readin classInputStreamWrapper- Throws:
IOException
-
read
- Overrides:
readin classInputStreamWrapper- Throws:
IOException
-
readAllBytes
- Overrides:
readAllBytesin classInputStreamWrapper- Throws:
IOException
-
readNBytes
- Overrides:
readNBytesin classInputStreamWrapper- Throws:
IOException
-
readNBytes
- Overrides:
readNBytesin classInputStreamWrapper- Throws:
IOException
-
skip
- Overrides:
skipin classInputStreamWrapper- Throws:
IOException
-
available
- Overrides:
availablein classInputStreamWrapper- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceNoClose- Overrides:
closein classInputStreamWrapper- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStreamWrapper
-
reset
- Overrides:
resetin classInputStreamWrapper- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStreamWrapper
-
transferTo
- Overrides:
transferToin classInputStreamWrapper- Throws:
IOException
-
