org.apache.jackrabbit.core.fs
Class RandomAccessOutputStream
java.lang.Object
java.io.OutputStream
org.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.
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomAccessOutputStream
public RandomAccessOutputStream()
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.