public class MockIndexOutputWrapper
extends org.apache.lucene.store.IndexOutput
| Constructor and Description |
|---|
MockIndexOutputWrapper(MockDirectoryWrapper dir,
org.apache.lucene.store.IndexOutput delegate,
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, String name)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class org.apache.lucene.store.IndexOutputIOExceptionpublic void flush()
throws IOException
flush in class org.apache.lucene.store.IndexOutputIOExceptionpublic void writeByte(byte b)
throws IOException
writeByte in class org.apache.lucene.store.DataOutputIOExceptionpublic void writeBytes(byte[] b,
int offset,
int len)
throws IOException
writeBytes in class org.apache.lucene.store.DataOutputIOExceptionpublic long getFilePointer()
getFilePointer in class org.apache.lucene.store.IndexOutputpublic void seek(long pos)
throws IOException
seek in class org.apache.lucene.store.IndexOutputIOExceptionpublic long length()
throws IOException
length in class org.apache.lucene.store.IndexOutputIOExceptionpublic void setLength(long length)
throws IOException
setLength in class org.apache.lucene.store.IndexOutputIOExceptionpublic void copyBytes(org.apache.lucene.store.DataInput input,
long numBytes)
throws IOException
copyBytes in class org.apache.lucene.store.DataOutputIOExceptionCopyright © 2000-2012 Apache Software Foundation. All Rights Reserved.