Documentation of 'org.apache.derby.impl.io.vfmem.BlockedByteArrayOutputStream' Java class
BlockedByteArrayOutputStream
org.apache.derby.impl.io.vfmem

Class BlockedByteArrayOutputStream

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


    public class BlockedByteArrayOutputStream
    extends java.io.OutputStream
    Output stream writing bytes into an underlying blocked byte array.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void close()
      Closes the stream.
      void write(byte[] buf, int offset, int len)
      Writes the specified bytes into the underlying blocked byte array.
      void write(int b)
      Writes the single byte into the underlying blocked byte array.
      • Methods inherited from class java.io.OutputStream

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

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

      • BlockedByteArrayOutputStream

        public BlockedByteArrayOutputStream(BlockedByteArray src,
                                            long pos)
        Creates a new stream writing data into the specified blocked byte array.
        Parameters:
        src - the underlying blocked byte array
        pos - the initial position of stream
    • Method Detail

      • write

        public void write(int b)
        Writes the single byte into the underlying blocked byte array.
        Specified by:
        write in class java.io.OutputStream
        Parameters:
        b - the byte to write
      • write

        public void write(byte[] buf,
                          int offset,
                          int len)
        Writes the specified bytes into the underlying blocked byte array.
        Overrides:
        write in class java.io.OutputStream
        Parameters:
        buf - source byte array
        offset - index of the first byte to write
        len - the number of bytes to write
      • close

        public void close()
        Closes the stream.
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface java.lang.AutoCloseable
        Overrides:
        close in class java.io.OutputStream

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.