OracleBFile.cs :  » 2.6.4-mono-.net-core » System.Data » System » Data » OracleClient » C# / CSharp Open Source

Home
C# / CSharp Open Source
1.2.6.4 mono .net core
2.2.6.4 mono core
3.Aspect Oriented Frameworks
4.Bloggers
5.Build Systems
6.Business Application
7.Charting Reporting Tools
8.Chat Servers
9.Code Coverage Tools
10.Content Management Systems CMS
11.CRM ERP
12.Database
13.Development
14.Email
15.Forum
16.Game
17.GIS
18.GUI
19.IDEs
20.Installers Generators
21.Inversion of Control Dependency Injection
22.Issue Tracking
23.Logging Tools
24.Message
25.Mobile
26.Network Clients
27.Network Servers
28.Office
29.PDF
30.Persistence Frameworks
31.Portals
32.Profilers
33.Project Management
34.RSS RDF
35.Rule Engines
36.Script
37.Search Engines
38.Sound Audio
39.Source Control
40.SQL Clients
41.Template Engines
42.Testing
43.UML
44.Web Frameworks
45.Web Service
46.Web Testing
47.Wiki Engines
48.Windows Presentation Foundation
49.Workflows
50.XML Parsers
C# / C Sharp
C# / C Sharp by API
C# / CSharp Tutorial
C# / CSharp Open Source » 2.6.4 mono .net core » System.Data 
System.Data » System » Data » OracleClient » OracleBFile.cs
//
// OracleBFile.cs 
//
// Part of the Mono class libraries at
// mcs/class/System.Data.OracleClient/System.Data.OracleClient
//
// Assembly: System.Data.OracleClient.dll
// Namespace: System.Data.OracleClient
//
// Author: Tim Coleman <tim@timcoleman.com>
//
// Copyright (C) Tim Coleman, 2003
//
// Licensed under the MIT/X11 License.
//

using System;
using System.IO;
using System.Data.SqlTypes;

namespace System.Data.OracleClient{
  public sealed class OracleBFile : Stream, ICloneable, INullable {
    #region Fields

    public static readonly new OracleBFile Null = new OracleBFile ();

    OracleConnection connection;
    bool isOpen = true;
    bool notNull = false;

    #endregion // Fields

    #region Constructors

    internal OracleBFile () {
    }

    #endregion // Constructors

    #region Properties

    public override bool CanRead {
      get { return (IsNull || isOpen); }
    }

    public override bool CanSeek {
      get { return (IsNull || isOpen); }
    }

    public override bool CanWrite {
      get { return false; }
    }

    public OracleConnection Connection {
      get { return connection; }
    }

    public string DirectoryName {
      [MonoTODO]
      get { 
        if (!isOpen)
          throw new ObjectDisposedException ("OracleBFile");
        throw new NotImplementedException ();
      }
    }

    public bool FileExists {
      [MonoTODO]
      get { 
        if (!isOpen)
          throw new ObjectDisposedException ("OracleBFile");
        if (Connection.State == ConnectionState.Closed)
          throw new InvalidOperationException ();
        throw new NotImplementedException ();
      }
    }

    public string FileName {
      [MonoTODO]
      get {
        if (!isOpen)
          throw new ObjectDisposedException ("OracleBFile");
        if (IsNull)
          return String.Empty;
        throw new NotImplementedException ();
      }
    }

    public bool IsNull {
      get { return !notNull; }
    }

    public override long Length {
      [MonoTODO]
      get { 
        if (!isOpen)
          throw new ObjectDisposedException ("OracleBFile");
        throw new NotImplementedException ();
      }
    }

    public override long Position {
      [MonoTODO]
      get { 
        if (!isOpen)
          throw new ObjectDisposedException ("OracleBFile");
        throw new NotImplementedException ();
      }
      [MonoTODO]
      set {
        if (!isOpen)
          throw new ObjectDisposedException ("OracleBFile");
        if (value > Length) 
          throw new ArgumentOutOfRangeException ();
        throw new NotImplementedException ();
      }
    }

    public object Value {
      [MonoTODO]
      get { 
        throw new NotImplementedException ();
      }
    }

    #endregion // Properties

    #region Methods

    [MonoTODO]
    public object Clone () {
      throw new NotImplementedException ();
    }

    [MonoTODO]
    public long CopyTo (OracleLob destination) {
      throw new NotImplementedException ();
    }

    [MonoTODO]
    public long CopyTo (OracleLob destination, long destinationOffset) {
      throw new NotImplementedException ();
    }

    [MonoTODO]
    public long CopyTo (long sourceOffset, OracleLob destination, long destinationOffset, long amount) {
      throw new NotImplementedException ();
    }

    [MonoTODO]
    public void Dispose () {
      throw new NotImplementedException ();
    }

    [MonoTODO]
    public override void Flush () {
      throw new NotImplementedException ();
    }

    [MonoTODO]
    public override int Read (byte[] buffer, int offset, int count) {
      throw new NotImplementedException ();
    }

    [MonoTODO]
    public override long Seek (long offset, SeekOrigin origin) {
      throw new NotImplementedException ();
    }

    [MonoTODO]
    public void SetFileName (string directory, string file) {
      throw new NotImplementedException ();
    }

    [MonoTODO]
    public override void SetLength (long value) {
      throw new InvalidOperationException ();
    }

    [MonoTODO]
    public override void Write (byte[] buffer, int offset, int count) {
      throw new NotSupportedException ();
    }

    #endregion // Methods
  }
}
www.java2v.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.