public class StreamWrapper
extends java.lang.Object
| Constructor and Description |
|---|
StreamWrapper(java.io.InputStream in,
long size)
Creates a wrapper for the given InputStream that can
safely be passed as a parameter to the
ConnectionHelper.exec(String, Object...),
ConnectionHelper.exec(String, Object[], boolean, int) and
ConnectionHelper.update(String, Object[]) methods. |
| Modifier and Type | Method and Description |
|---|---|
void |
closeStream() |
long |
getSize() |
java.io.InputStream |
getStream() |
boolean |
resetStream()
Resets the internal InputStream that it could be re-read.
Is used from ConnectionHelper.RetryManager if a SQLException has occurred.It relies on the assumption that the InputStream was not marked anywhere during reading. |
public StreamWrapper(java.io.InputStream in,
long size)
ConnectionHelper.exec(String, Object...),
ConnectionHelper.exec(String, Object[], boolean, int) and
ConnectionHelper.update(String, Object[]) methods.in - the InputStream to wrapsize - the size of the input streampublic java.io.InputStream getStream()
public long getSize()
public void closeStream()
public boolean resetStream()
ConnectionHelper.RetryManager if a SQLException has occurred.Copyright © 2010 - 2023 Adobe. All Rights Reserved