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.Closeable
close
in interface java.lang.AutoCloseable
close
in class org.apache.lucene.store.IndexOutput
java.io.IOException
public void flush() throws java.io.IOException
flush
in class org.apache.lucene.store.IndexOutput
java.io.IOException
public void writeByte(byte b) throws java.io.IOException
writeByte
in class org.apache.lucene.store.DataOutput
java.io.IOException
public void writeBytes(byte[] b, int offset, int len) throws java.io.IOException
writeBytes
in class org.apache.lucene.store.DataOutput
java.io.IOException
public long getFilePointer()
getFilePointer
in class org.apache.lucene.store.IndexOutput
public void seek(long pos) throws java.io.IOException
seek
in class org.apache.lucene.store.IndexOutput
java.io.IOException
public long length() throws java.io.IOException
length
in class org.apache.lucene.store.IndexOutput
java.io.IOException
public void setLength(long length) throws java.io.IOException
setLength
in class org.apache.lucene.store.IndexOutput
java.io.IOException
public void copyBytes(org.apache.lucene.store.DataInput input, long numBytes) throws java.io.IOException
copyBytes
in class org.apache.lucene.store.DataOutput
java.io.IOException
Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.