public class MockIndexOutputWrapper
extends org.apache.lucene.store.IndexOutput
| Constructor and Description |
|---|
MockIndexOutputWrapper(MockDirectoryWrapper dir,
org.apache.lucene.store.IndexOutput delegate,
java.lang.String name)
Construct an empty output buffer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
copyBytes(org.apache.lucene.store.DataInput input,
long numBytes) |
void |
flush() |
long |
getFilePointer() |
long |
length() |
void |
seek(long pos) |
void |
setLength(long length) |
void |
writeByte(byte b) |
void |
writeBytes(byte[] b,
int offset,
int len) |
public MockIndexOutputWrapper(MockDirectoryWrapper dir, org.apache.lucene.store.IndexOutput delegate, java.lang.String name)
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class org.apache.lucene.store.IndexOutputjava.io.IOExceptionpublic void flush()
throws java.io.IOException
flush in class org.apache.lucene.store.IndexOutputjava.io.IOExceptionpublic void writeByte(byte b)
throws java.io.IOException
writeByte in class org.apache.lucene.store.DataOutputjava.io.IOExceptionpublic void writeBytes(byte[] b,
int offset,
int len)
throws java.io.IOException
writeBytes in class org.apache.lucene.store.DataOutputjava.io.IOExceptionpublic long getFilePointer()
getFilePointer in class org.apache.lucene.store.IndexOutputpublic void seek(long pos)
throws java.io.IOException
seek in class org.apache.lucene.store.IndexOutputjava.io.IOExceptionpublic long length()
throws java.io.IOException
length in class org.apache.lucene.store.IndexOutputjava.io.IOExceptionpublic void setLength(long length)
throws java.io.IOException
setLength in class org.apache.lucene.store.IndexOutputjava.io.IOExceptionpublic void copyBytes(org.apache.lucene.store.DataInput input,
long numBytes)
throws java.io.IOException
copyBytes in class org.apache.lucene.store.DataOutputjava.io.IOExceptionCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.