| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- //
- // 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 <[email protected]>
- //
- // 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
- }
- }
|