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

Class BufferedIndexOutput



  • public abstract class BufferedIndexOutput
    extends IndexOutput
    Base implementation class for buffered IndexOutput.
    • Constructor Detail

      • BufferedIndexOutput

        public BufferedIndexOutput()
    • Method Detail

      • writeBytes

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

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

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

        public long getFilePointer()
        Returns the current position in this file, where the next write will occur.
        Specified by:
        getFilePointer in class IndexOutput
        See Also:
        seek(long)
      • seek

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

        public abstract long length()
                             throws java.io.IOException
        The number of bytes in the file.
        Specified by:
        length in class IndexOutput
        Throws:
        java.io.IOException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.