Beispiel #1
0
        //--------
        //-------- Write Methods
        //--------

        /// <summary>
        /// Writes the specified byte to this file output stream. Implements
        /// the <code>write</code> method of <code>OutputStream</code>.
        /// </summary>
        /// <param name="b">   the byte to be written. </param>
        /// <exception cref="IOException">  if an I/O error occurs. </exception>
        public virtual void write(int b)
        {
            if (fd != null)
            {
                fd.write(b);
            }
            else
            {
                throw new System.IO.IOException("1-Wire FileDescriptor is null");
            }
        }