com.ibm.jzos

Class RDWOutputRecordStream

    • Constructor Summary

      Constructors 
      Constructor and Description
      RDWOutputRecordStream(java.io.OutputStream os)
      Construct an instance of RDWOutputRecordStream.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      void close()
      Close the underlying OutputStream
      void write(byte[] bytes)
      Write the supplied bytes to the underlying OutputStream preceeded by a 4 byte RDW.
      void write(byte[] bytes, int offset, int length)
      Write the supplied bytes to the underlying OutputStream preceeded by a 4 byte RDW.
      • Methods inherited from class java.lang.Object

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

      • RDWOutputRecordStream

        public RDWOutputRecordStream(java.io.OutputStream os)
        Construct an instance of RDWOutputRecordStream. Supplying a BufferedOutputStream will generally result in better performance.
        Parameters:
        os - the OutputStream that will receive the RDW delineated records
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Close the underlying OutputStream
        Throws:
        java.io.IOException
      • write

        public void write(byte[] bytes)
                   throws java.io.IOException
        Write the supplied bytes to the underlying OutputStream preceeded by a 4 byte RDW.
        Parameters:
        bytes -
        Throws:
        java.io.IOException
      • write

        public void write(byte[] bytes,
                 int offset,
                 int length)
                   throws java.io.IOException
        Write the supplied bytes to the underlying OutputStream preceeded by a 4 byte RDW.
        Parameters:
        bytes -
        Throws:
        java.io.IOException
© Copyright IBM Corporation 2005, 2013.