Пример #1
0
 internal IntPtr( TclOutputStream enclosingInstance, int value )
 {
   InitBlock( enclosingInstance );
   i = value;
 }
Пример #2
0
 internal IntPtr( TclOutputStream enclosingInstance )
 {
   InitBlock( enclosingInstance );
 }
Пример #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;
    }
Пример #4
0
 private void InitBlock( TclOutputStream enclosingInstance )
 {
   this.enclosingInstance = enclosingInstance;
 }
Пример #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;
    }