org.apache.lucene.store

Class RAMOutputStream

public class RAMOutputStream extends IndexOutput

A memory-resident IndexOutput implementation.

Version: $Id: RAMOutputStream.java 542561 2007-05-29 15:14:07Z mikemccand $

Constructor Summary
RAMOutputStream()
Construct an empty output buffer.
Method Summary
voidclose()
voidflush()
longgetFilePointer()
longlength()
voidreset()
Resets this to an empty buffer.
voidseek(long pos)
voidwriteByte(byte b)
voidwriteBytes(byte[] b, int offset, int len)
voidwriteTo(IndexOutput out)
Copy the current contents of this buffer to the named output.

Constructor Detail

RAMOutputStream

public RAMOutputStream()
Construct an empty output buffer.

Method Detail

close

public void close()

flush

public void flush()

getFilePointer

public long getFilePointer()

length

public long length()

reset

public void reset()
Resets this to an empty buffer.

seek

public void seek(long pos)

writeByte

public void writeByte(byte b)

writeBytes

public void writeBytes(byte[] b, int offset, int len)

writeTo

public void writeTo(IndexOutput out)
Copy the current contents of this buffer to the named output.
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.