Esempio n. 1
0
 internal IntPtr( TclOutputStream enclosingInstance, int value )
 {
   InitBlock( enclosingInstance );
   i = value;
 }
Esempio n. 2
0
 internal IntPtr( TclOutputStream enclosingInstance )
 {
   InitBlock( enclosingInstance );
 }
Esempio n. 3
0
    /// <summary> Setup the TclOutputStream on the first call to write</summary>

    protected internal void initOutput()
    {
      if ( output != null )
        return;

      output = new TclOutputStream( OutputStream );
      output.Encoding = encoding;
      output.Translation = outputTranslation;
      output.EofChar = outputEofChar;
      output.Buffering = buffering;
      output.BufferSize = bufferSize;
      output.Blocking = blocking;
    }
Esempio n. 4
0
 private void InitBlock( TclOutputStream enclosingInstance )
 {
   this.enclosingInstance = enclosingInstance;
 }
Esempio n. 5
0
    /// <summary> Close the Channel.  The channel is only closed, it is 
    /// the responsibility of the "closer" to remove the channel from 
    /// the channel table.
    /// </summary>

    internal virtual void close()
    {

      IOException ex = null;

      if ( input != null )
      {
        try
        {
          input.close();
        }
        catch ( IOException e )
        {
          ex = e;
        }
        input = null;
      }

      if ( output != null )
      {
        try
        {
          output.close();
        }
        catch ( IOException e )
        {
          ex = e;
        }
        output = null;
      }

      if ( ex != null )
        throw ex;
    }