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
ConstructorDescriptionInputStreamWrapper
(ConnectionWrapperImpl connectionWrapper, InputStream wrapped) -
Method Summary
Modifier and TypeMethodDescriptionint
void
close()
protected ConnectionWrapperImpl
Gets the connection wrapper.Gets the input stream that is wrapped.boolean
void
mark
(int readlimit) boolean
int
read()
int
read
(byte[] b) int
read
(byte[] b, int off, int len) void
reset()
long
skip
(long n) toString()
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
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
-
InputStreamWrapper
-
-
Method Details
-
getConnectionWrapper
Gets the connection wrapper. -
getWrapped
Gets the input stream that is wrapped.- Specified by:
getWrapped
in interfaceWrapper
-
isNoClose
public boolean isNoClose() -
toString
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
skip
- Overrides:
skip
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceNoClose
- Overrides:
close
in classInputStream
- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
mark
in classInputStream
-
reset
- Overrides:
reset
in classInputStream
- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupported
in classInputStream
-