Package org.postgresql.util
Class StreamWrapper
java.lang.Object
org.postgresql.util.StreamWrapper
- All Implemented Interfaces:
Closeable
,AutoCloseable
Wrapper around a length-limited InputStream.
-
Constructor Summary
ConstructorDescriptionStreamWrapper
(byte[] data, int offset, int length) StreamWrapper
(InputStream stream) StreamWrapper
(InputStream stream, int length) -
Method Summary
-
Constructor Details
-
StreamWrapper
public StreamWrapper(byte[] data, int offset, int length) -
StreamWrapper
-
StreamWrapper
- Throws:
PSQLException
-
-
Method Details
-
getStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
getLength
public int getLength() -
getOffset
public int getOffset() -
getBytes
public byte @Nullable [] getBytes() -
toString
-