Package org.dspace.discovery
Class FullTextContentStreams
- java.lang.Object
-
- org.apache.solr.common.util.ContentStreamBase
-
- org.dspace.discovery.FullTextContentStreams
-
- All Implemented Interfaces:
org.apache.solr.common.util.ContentStream
public class FullTextContentStreams extends org.apache.solr.common.util.ContentStreamBaseConstruct aContentStreamfrom aFile
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.common.util.ContentStreamBase
org.apache.solr.common.util.ContentStreamBase.ByteArrayStream, org.apache.solr.common.util.ContentStreamBase.FileStream, org.apache.solr.common.util.ContentStreamBase.StringStream, org.apache.solr.common.util.ContentStreamBase.URLStream
-
-
Field Summary
Fields Modifier and Type Field Description protected BitstreamServicebitstreamServiceprotected Contextcontextstatic StringFULLTEXT_BUNDLEprotected List<org.dspace.discovery.FullTextContentStreams.FullTextBitstream>fullTextStreams
-
Constructor Summary
Constructors Constructor Description FullTextContentStreams(Context context, Item parentItem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()ReadergetReader()LonggetSize()InputStreamgetStream()protected voidinit(Item parentItem)booleanisEmpty()
-
-
-
Field Detail
-
FULLTEXT_BUNDLE
public static final String FULLTEXT_BUNDLE
- See Also:
- Constant Field Values
-
context
protected final Context context
-
fullTextStreams
protected List<org.dspace.discovery.FullTextContentStreams.FullTextBitstream> fullTextStreams
-
bitstreamService
protected BitstreamService bitstreamService
-
-
Constructor Detail
-
FullTextContentStreams
public FullTextContentStreams(Context context, Item parentItem) throws SQLException
- Throws:
SQLException
-
-
Method Detail
-
init
protected void init(Item parentItem)
-
getName
public String getName()
- Specified by:
getNamein interfaceorg.apache.solr.common.util.ContentStream- Overrides:
getNamein classorg.apache.solr.common.util.ContentStreamBase
-
getSize
public Long getSize()
- Specified by:
getSizein interfaceorg.apache.solr.common.util.ContentStream- Overrides:
getSizein classorg.apache.solr.common.util.ContentStreamBase
-
getReader
public Reader getReader() throws IOException
- Specified by:
getReaderin interfaceorg.apache.solr.common.util.ContentStream- Overrides:
getReaderin classorg.apache.solr.common.util.ContentStreamBase- Throws:
IOException
-
getStream
public InputStream getStream() throws IOException
- Throws:
IOException
-
isEmpty
public boolean isEmpty()
-
-