org.apache.lucene.store

Class RAMOutputStream

public class RAMOutputStream extends BufferedIndexOutput

A memory-resident {@link IndexOutput} implementation.

Version: $Id: RAMOutputStream.java 381429 2006-02-27 20:17:01Z cutting $

Constructor Summary
RAMOutputStream()
Construct an empty output buffer.
Method Summary
voidclose()
voidflushBuffer(byte[] src, int len)
longlength()
voidreset()
Resets this to an empty buffer.
voidseek(long pos)
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()

flushBuffer

public void flushBuffer(byte[] src, int len)

length

public long length()

reset

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

seek

public void seek(long pos)

writeTo

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