org.apache.jackrabbit.core.fs
Class RandomAccessOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.apache.jackrabbit.core.fs.RandomAccessOutputStream

public abstract class RandomAccessOutputStream
extends OutputStream

Extends the regular java.io.OutputStream with a random access facility. Multiple write() operations can be positioned off sequence with the seek(long) method.


Constructor Summary
RandomAccessOutputStream()
           
 
Method Summary
abstract  void seek(long position)
          Sets the current position in the resource where the next write will occur.
 
Methods inherited from class java.io.OutputStream
close, flush, write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomAccessOutputStream

public RandomAccessOutputStream()
Method Detail

seek

public abstract void seek(long position)
                   throws IOException
Sets the current position in the resource where the next write will occur.

Parameters:
position - the new position in the resource.
Throws:
IOException - if an error occurs while seeking to the position.


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.