Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.lucene.store
Class MockIndexInputWrapper

    java.lang.Object
      org.apache.lucene.store.DataInput
          org.apache.lucene.store.IndexInput
              org.apache.lucene.store.MockIndexInputWrapper

All Implemented Interfaces:
  Closeable, Cloneable

    public class MockIndexInputWrapper

extends org.apache.lucene.store.IndexInput

Used by MockDirectoryWrapper to create an input stream that keeps track of when it's been closed.

Constructor Summary
`MockIndexInputWrapper(MockDirectoryWrapper dir, String name, org.apache.lucene.store.IndexInput delegate)` Construct an empty output buffer.

Method Summary
`Object` | `clone()`
`void` | `close()`
`void` | `copyBytes(org.apache.lucene.store.IndexOutput out, long numBytes)`
`long` | `getFilePointer()`
`long` | `length()`
`byte` | `readByte()`
`void` | `readBytes(byte[] b, int offset, int len)`
`void` | `readBytes(byte[] b, int offset, int len, boolean useBuffer)`
`void` | `readChars(char[] buffer, int start, int length)`
`int` | `readInt()`
`long` | `readLong()`
`String` | `readString()`
`Map<String,String>` | `readStringStringMap()`
`int` | `readVInt()`
`long` | `readVLong()`
`void` | `seek(long pos)`
`void` | `setModifiedUTF8StringsMode()`
`void` | `skipChars(int length)`

Methods inherited from class org.apache.lucene.store.IndexInput
`toString`

Methods inherited from class org.apache.lucene.store.DataInput
`readShort`

Methods inherited from class java.lang.Object
`equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### MockIndexInputWrapper

    public MockIndexInputWrapper(MockDirectoryWrapper dir,
                                 String name,
                                 org.apache.lucene.store.IndexInput delegate)

  Construct an empty output buffer.

Method Detail

### close

    public void close()
               throws IOException

  Specified by:
    `close` in interface `Closeable`
  Specified by:
    `close` in class `org.apache.lucene.store.IndexInput`
  Throws:
    `IOException`

### clone

    public Object clone()

  Overrides:
    `clone` in class `org.apache.lucene.store.DataInput`

### getFilePointer

    public long getFilePointer()

  Specified by:
    `getFilePointer` in class `org.apache.lucene.store.IndexInput`

### seek

    public void seek(long pos)
              throws IOException

  Specified by:
    `seek` in class `org.apache.lucene.store.IndexInput`
  Throws:
    `IOException`

### length

    public long length()

  Specified by:
    `length` in class `org.apache.lucene.store.IndexInput`

### readByte

    public byte readByte()
                  throws IOException

  Specified by:
    `readByte` in class `org.apache.lucene.store.DataInput`
  Throws:
    `IOException`

### readBytes

    public void readBytes(byte[] b,
                          int offset,
                          int len)
                   throws IOException

  Specified by:
    `readBytes` in class `org.apache.lucene.store.DataInput`
  Throws:
    `IOException`

### copyBytes

    public void copyBytes(org.apache.lucene.store.IndexOutput out,
                          long numBytes)
                   throws IOException

  Overrides:
    `copyBytes` in class `org.apache.lucene.store.IndexInput`
  Throws:
    `IOException`

### readBytes

    public void readBytes(byte[] b,
                          int offset,
                          int len,
                          boolean useBuffer)
                   throws IOException

  Overrides:
    `readBytes` in class `org.apache.lucene.store.DataInput`
  Throws:
    `IOException`

### readInt

    public int readInt()
                throws IOException

  Overrides:
    `readInt` in class `org.apache.lucene.store.DataInput`
  Throws:
    `IOException`

### readVInt

    public int readVInt()
                 throws IOException

  Overrides:
    `readVInt` in class `org.apache.lucene.store.DataInput`
  Throws:
    `IOException`

### readLong

    public long readLong()
                  throws IOException

  Overrides:
    `readLong` in class `org.apache.lucene.store.DataInput`
  Throws:
    `IOException`

### readVLong

    public long readVLong()
                   throws IOException

  Overrides:
    `readVLong` in class `org.apache.lucene.store.DataInput`
  Throws:
    `IOException`

### readString

    public String readString()
                      throws IOException

  Overrides:
    `readString` in class `org.apache.lucene.store.DataInput`
  Throws:
    `IOException`

### readStringStringMap

    public Map<String,String> readStringStringMap()
                                           throws IOException

  Overrides:
    `readStringStringMap` in class `org.apache.lucene.store.DataInput`
  Throws:
    `IOException`

### setModifiedUTF8StringsMode

    public void setModifiedUTF8StringsMode()

  Overrides:
    `setModifiedUTF8StringsMode` in class `org.apache.lucene.store.DataInput`

### readChars

    public void readChars(char[] buffer,
                          int start,
                          int length)
                   throws IOException

  Overrides:
    `readChars` in class `org.apache.lucene.store.DataInput`
  Throws:
    `IOException`

### skipChars

    public void skipChars(int length)
                   throws IOException

  Overrides:
    `skipChars` in class `org.apache.lucene.store.IndexInput`
  Throws:
    `IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD