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.ContentStreamBase
Construct a ContentStream from a File
  • 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 final Context
     
    static final String
     
    protected List<org.dspace.discovery.FullTextContentStreams.FullTextBitstream>
     

    Fields inherited from class org.apache.solr.common.util.ContentStreamBase

    contentType, DEFAULT_CHARSET, name, size, sourceInfo
  • Constructor Summary

    Constructors
    Constructor
    Description
    FullTextContentStreams(Context context, Item parentItem)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
     
    protected void
    init(Item parentItem)
     
    boolean
     

    Methods inherited from class org.apache.solr.common.util.ContentStreamBase

    attemptToDetermineContentType, create, getCharsetFromContentType, getContentType, getSourceInfo, setContentType, setName, setSize, setSourceInfo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • FULLTEXT_BUNDLE

      public static final String FULLTEXT_BUNDLE
      See Also:
    • context

      protected final Context context
    • fullTextStreams

      protected List<org.dspace.discovery.FullTextContentStreams.FullTextBitstream> fullTextStreams
    • bitstreamService

      protected BitstreamService bitstreamService
  • Constructor Details

  • Method Details

    • init

      protected void init(Item parentItem)
    • getName

      public String getName()
      Specified by:
      getName in interface org.apache.solr.common.util.ContentStream
      Overrides:
      getName in class org.apache.solr.common.util.ContentStreamBase
    • getSize

      public Long getSize()
      Specified by:
      getSize in interface org.apache.solr.common.util.ContentStream
      Overrides:
      getSize in class org.apache.solr.common.util.ContentStreamBase
    • getReader

      public Reader getReader() throws IOException
      Specified by:
      getReader in interface org.apache.solr.common.util.ContentStream
      Overrides:
      getReader in class org.apache.solr.common.util.ContentStreamBase
      Throws:
      IOException
    • getStream

      public InputStream getStream() throws IOException
      Throws:
      IOException
    • isEmpty

      public boolean isEmpty()