org.apache.jackrabbit.core.util.db
Class StreamWrapper

java.lang.Object
  extended by org.apache.jackrabbit.core.util.db.StreamWrapper

public class StreamWrapper
extends Object


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
 long getSize()
           
 InputStream getStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamWrapper

public 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.

Parameters:
in - the InputStream to wrap
size - the size of the input stream
Method Detail

getStream

public InputStream getStream()

getSize

public long getSize()


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.