Package rife.cmf.dam.contentstores
Class RawContentStream
java.lang.Object
java.io.InputStream
rife.cmf.dam.contentstores.RawContentStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byte[]protected booleanprotected intprotected DbResultSetprotected DbPreparedStatement -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static RawContentStreaminstance(DatabaseRawStore store, Select retrieveContentChunks, int id) protected static DbPreparedStatementprepareStatement(DatabaseRawStore store, Select retrieveContentChunks, int id) intread()Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
statement_
-
resultSet_
-
buffer_
protected byte[] buffer_ -
index_
protected int index_ -
hasRow_
protected boolean hasRow_
-
-
Constructor Details
-
RawContentStream
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
prepareStatement
protected static DbPreparedStatement prepareStatement(DatabaseRawStore store, Select retrieveContentChunks, int id) -
instance
public static RawContentStream instance(DatabaseRawStore store, Select retrieveContentChunks, int id)
-