public abstract class IndexOutput extends DataOutput implements java.io.Closeable
Directory
,
IndexInput
Constructor and Description |
---|
IndexOutput() |
Modifier and Type | Method and Description |
---|---|
abstract void |
close()
Closes this stream to further operations.
|
abstract void |
flush()
Forces any buffered output to be written.
|
abstract long |
getFilePointer()
Returns the current position in this file, where the next write will
occur.
|
abstract long |
length()
The number of bytes in the file.
|
abstract void |
seek(long pos)
Sets current position in this file, where the next write will occur.
|
void |
setLength(long length)
Set the file length.
|
copyBytes, writeByte, writeBytes, writeBytes, writeChars, writeChars, writeInt, writeLong, writeShort, writeString, writeStringStringMap, writeVInt, writeVLong
public abstract void flush() throws java.io.IOException
java.io.IOException
public abstract void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
java.io.IOException
public abstract long getFilePointer()
seek(long)
public abstract void seek(long pos) throws java.io.IOException
java.io.IOException
getFilePointer()
public abstract long length() throws java.io.IOException
java.io.IOException
public void setLength(long length) throws java.io.IOException
length
- file lengthjava.io.IOException
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.