|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.util.db.StreamWrapper
public class StreamWrapper
| Constructor Summary | |
|---|---|
StreamWrapper(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. |
|
| Method Summary | |
|---|---|
void |
cleanupResources()
Cleans up the internal Resources |
long |
getSize()
|
InputStream |
getStream()
|
boolean |
resetStream()
Resets the internal InputStream that it could be re-read. Is used from RetryManager if a SQLException has occurred.At the moment only a TempFileInputStream can be reseted. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StreamWrapper(InputStream in,
long size)
ConnectionHelper.exec(String, Object...),
ConnectionHelper.exec(String, Object[], boolean, int) and
ConnectionHelper.update(String, Object[]) methods.
If the wrapped Stream is a TempFileInputStream it will be wrapped again by a BufferedInputStream.
in - the InputStream to wrapsize - the size of the input stream| Method Detail |
|---|
public InputStream getStream()
public long getSize()
public void cleanupResources()
public boolean resetStream()
RetryManager if a SQLException has occurred.TempFileInputStream can be reseted.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||