java.lang.Object
java.io.InputStream
com.aoapps.sql.wrapper.InputStreamWrapper
- All Implemented Interfaces:
NoClose,Wrapper,Closeable,AutoCloseable,Wrapper
Wraps an
InputStream.- Author:
- AO Industries, Inc.
-
Constructor Summary
ConstructorsConstructorDescriptionInputStreamWrapper(ConnectionWrapperImpl connectionWrapper, InputStream wrapped) -
Method Summary
Modifier and TypeMethodDescriptionintvoidclose()protected ConnectionWrapperImplGets the connection wrapper.Gets the input stream that is wrapped.booleanvoidmark(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) toString()longtransferTo(OutputStream out) Methods 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
-
InputStreamWrapper
-
-
Method Details
-
getConnectionWrapper
Gets the connection wrapper. -
getWrapped
Gets the input stream that is wrapped.- Specified by:
getWrappedin interfaceWrapper
-
isNoClose
public boolean isNoClose() -
toString
-
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
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceNoClose- Overrides:
closein classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
transferTo
- Overrides:
transferToin classInputStream- Throws:
IOException
-
