org.apache.lucene.store

Class RAMOutputStream

public class RAMOutputStream extends OutputStream

A memory-resident {@link OutputStream} implementation.

Version: $Id: RAMOutputStream.java,v 1.2 2004/03/29 22:48:05 cutting Exp $

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(OutputStream 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(OutputStream out)
Copy the current contents of this buffer to the named output.
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.