- java.lang.Object
-
- org.hsqldb.lib.InputStreamWrapper
-
- All Implemented Interfaces:
InputStreamInterface
public class InputStreamWrapper extends java.lang.Object implements InputStreamInterface
A wrapper for a java.io.InputStream object.- Since:
- 2.2.8
- Author:
- Fred Toussi (fredt@users dot sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description InputStreamWrapper(java.io.InputStream is)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()voidclose()longgetSizeLimit()Invariant.intread()intread(byte[] bytes)intread(byte[] bytes, int offset, int length)voidsetSizeLimit(long count)longskip(long count)
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Specified by:
readin interfaceInputStreamInterface- Throws:
java.io.IOException
-
read
public int read(byte[] bytes) throws java.io.IOException- Specified by:
readin interfaceInputStreamInterface- Throws:
java.io.IOException
-
read
public int read(byte[] bytes, int offset, int length) throws java.io.IOException- Specified by:
readin interfaceInputStreamInterface- Throws:
java.io.IOException
-
skip
public long skip(long count) throws java.io.IOException- Specified by:
skipin interfaceInputStreamInterface- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException- Specified by:
availablein interfaceInputStreamInterface- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfaceInputStreamInterface- Throws:
java.io.IOException
-
setSizeLimit
public void setSizeLimit(long count)
- Specified by:
setSizeLimitin interfaceInputStreamInterface
-
getSizeLimit
public long getSizeLimit()
Description copied from interface:InputStreamInterfaceInvariant. Number of characters in stream, including any already read.- Specified by:
getSizeLimitin interfaceInputStreamInterface- Returns:
- -1 if no explicit limit otherwise the limit
-
-