com.uwyn.rife.cmf.dam.contentstores
Class RawContentStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.uwyn.rife.cmf.dam.contentstores.RawContentStream
All Implemented Interfaces:
Closeable

public class RawContentStream
extends InputStream


Field Summary
protected  byte[] mBuffer
           
protected  boolean mHasRow
           
protected  int mIndex
           
protected  DbResultSet mResultSet
           
protected  DbPreparedStatement mStatement
           
 
Constructor Summary
protected RawContentStream(DbPreparedStatement statement)
           
 
Method Summary
 void close()
           
static RawContentStream getInstance(DatabaseRawStore store, Select retrieveContentChunks, int id)
           
protected static DbPreparedStatement prepareStatement(DatabaseRawStore store, Select retrieveContentChunks, int id)
           
 int read()
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mStatement

protected DbPreparedStatement mStatement

mResultSet

protected DbResultSet mResultSet

mBuffer

protected byte[] mBuffer

mIndex

protected int mIndex

mHasRow

protected boolean mHasRow
Constructor Detail

RawContentStream

protected RawContentStream(DbPreparedStatement statement)
Method Detail

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException

prepareStatement

protected static DbPreparedStatement prepareStatement(DatabaseRawStore store,
                                                      Select retrieveContentChunks,
                                                      int id)

getInstance

public static RawContentStream getInstance(DatabaseRawStore store,
                                           Select retrieveContentChunks,
                                           int id)


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.