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
Modifier and TypeFieldDescriptionprotected byte[]
protected boolean
protected int
protected DbResultSet
protected DbPreparedStatement
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
static RawContentStream
instance
(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, 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:
read
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in 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)
-