Package org.apache.lucene.store
Class WindowsDirectory.WindowsIndexInput
- java.lang.Object
-
- org.apache.lucene.store.DataInput
-
- org.apache.lucene.store.IndexInput
-
- org.apache.lucene.store.BufferedIndexInput
-
- org.apache.lucene.store.WindowsDirectory.WindowsIndexInput
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Cloneable
- Enclosing class:
- WindowsDirectory
protected static class WindowsDirectory.WindowsIndexInput extends BufferedIndexInput
-
-
Field Summary
-
Fields inherited from class org.apache.lucene.store.BufferedIndexInput
buffer, BUFFER_SIZE
-
-
Constructor Summary
Constructors Constructor Description WindowsIndexInput(File file, int bufferSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Returns a clone of this stream.voidclose()Closes the stream to further operations.longlength()The number of bytes in the file.protected voidreadInternal(byte[] b, int offset, int length)Expert: implements buffer refill.protected voidseekInternal(long pos)Expert: implements seek.-
Methods inherited from class org.apache.lucene.store.BufferedIndexInput
copyBytes, flushBuffer, getBufferSize, getFilePointer, newBuffer, readByte, readBytes, readBytes, readInt, readLong, readShort, readVInt, readVLong, seek, setBufferSize
-
Methods inherited from class org.apache.lucene.store.IndexInput
skipChars, toString
-
Methods inherited from class org.apache.lucene.store.DataInput
readChars, readString, readStringStringMap, setModifiedUTF8StringsMode
-
-
-
-
Constructor Detail
-
WindowsIndexInput
public WindowsIndexInput(File file, int bufferSize) throws IOException
- Throws:
IOException
-
-
Method Detail
-
readInternal
protected void readInternal(byte[] b, int offset, int length) throws IOExceptionDescription copied from class:BufferedIndexInputExpert: implements buffer refill. Reads bytes from the current position in the input.- Specified by:
readInternalin classBufferedIndexInput- Parameters:
b- the array to read bytes intooffset- the offset in the array to start storing byteslength- the number of bytes to read- Throws:
IOException
-
seekInternal
protected void seekInternal(long pos) throws IOExceptionDescription copied from class:BufferedIndexInputExpert: implements seek. Sets current position in this file, where the nextBufferedIndexInput.readInternal(byte[],int,int)will occur.- Specified by:
seekInternalin classBufferedIndexInput- Throws:
IOException- See Also:
BufferedIndexInput.readInternal(byte[],int,int)
-
close
public void close() throws IOExceptionDescription copied from class:IndexInputCloses the stream to further operations.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classIndexInput- Throws:
IOException
-
length
public long length()
Description copied from class:IndexInputThe number of bytes in the file.- Specified by:
lengthin classIndexInput
-
clone
public Object clone()
Description copied from class:DataInputReturns a clone of this stream.Clones of a stream access the same data, and are positioned at the same point as the stream they were cloned from.
Expert: Subclasses must ensure that clones may be positioned at different points in the input from each other and from the stream they were cloned from.
- Overrides:
clonein classBufferedIndexInput
-
-