Class RandomAccessOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    public abstract class RandomAccessOutputStream
    extends java.io.OutputStream
    Deprecated.
    this class should no longer be used
    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

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      abstract void seek​(long position)
      Deprecated.
      Sets the current position in the resource where the next write will occur.
      • Methods inherited from class java.io.OutputStream

        close, flush, nullOutputStream, write, write, write
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RandomAccessOutputStream

        public RandomAccessOutputStream()
        Deprecated.
    • Method Detail

      • seek

        public abstract void seek​(long position)
                           throws java.io.IOException
        Deprecated.
        Sets the current position in the resource where the next write will occur.
        Parameters:
        position - the new position in the resource.
        Throws:
        java.io.IOException - if an error occurs while seeking to the position.