Documentation of 'org.apache.lucene.store.RAMOutputStream' Java class
RAMOutputStream
org.apache.lucene.store

Class RAMOutputStream

    • Constructor Detail

      • RAMOutputStream

        public RAMOutputStream()
        Construct an empty output buffer.
    • Method Detail

      • writeTo

        public void writeTo(IndexOutput out)
                     throws java.io.IOException
        Copy the current contents of this buffer to the named output.
        Throws:
        java.io.IOException
      • reset

        public void reset()
        Resets this to an empty buffer.
      • close

        public void close()
                   throws java.io.IOException
        Description copied from class: IndexOutput
        Closes this stream to further operations.
        Specified by:
        close in class IndexOutput
        Throws:
        java.io.IOException
      • seek

        public void seek(long pos)
                  throws java.io.IOException
        Description copied from class: IndexOutput
        Sets current position in this file, where the next write will occur.
        Specified by:
        seek in class IndexOutput
        Throws:
        java.io.IOException
        See Also:
        IndexOutput.getFilePointer()
      • length

        public long length()
        Description copied from class: IndexOutput
        The number of bytes in the file.
        Specified by:
        length in class IndexOutput
      • writeBytes

        public void writeBytes(byte[] b,
                               int offset,
                               int len)
                        throws java.io.IOException
        Description copied from class: IndexOutput
        Writes an array of bytes.
        Specified by:
        writeBytes in class IndexOutput
        Parameters:
        b - the bytes to write
        offset - the offset in the byte array
        len - the number of bytes to write
        Throws:
        java.io.IOException
        See Also:
        IndexInput.readBytes(byte[],int,int)
      • flush

        public void flush()
                   throws java.io.IOException
        Description copied from class: IndexOutput
        Forces any buffered output to be written.
        Specified by:
        flush in class IndexOutput
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.