4 // Part of the Mono class libraries at
5 // mcs/class/System.Data.OracleClient/System.Data.OracleClient
7 // Assembly: System.Data.OracleClient.dll
8 // Namespace: System.Data.OracleClient
10 // Author: Tim Coleman <tim@timcoleman.com>
12 // Copyright (C) Tim Coleman, 2003
14 // Licensed under the MIT/X11 License.
19 using System.Data.SqlTypes;
21 namespace System.Data.OracleClient {
22 public sealed class OracleBFile : Stream, ICloneable, INullable
26 public static readonly new OracleBFile Null = new OracleBFile ();
28 OracleConnection connection;
36 internal OracleBFile ()
40 #endregion // Constructors
44 public override bool CanRead {
45 get { return (IsNull || isOpen); }
48 public override bool CanSeek {
49 get { return (IsNull || isOpen); }
52 public override bool CanWrite {
56 public OracleConnection Connection {
57 get { return connection; }
60 public string DirectoryName {
64 throw new ObjectDisposedException ("OracleBFile");
65 throw new NotImplementedException ();
69 public bool FileExists {
73 throw new ObjectDisposedException ("OracleBFile");
74 if (Connection.State == ConnectionState.Closed)
75 throw new InvalidOperationException ();
76 throw new NotImplementedException ();
80 public string FileName {
84 throw new ObjectDisposedException ("OracleBFile");
87 throw new NotImplementedException ();
92 get { return !notNull; }
95 public override long Length {
99 throw new ObjectDisposedException ("OracleBFile");
100 throw new NotImplementedException ();
104 public override long Position {
108 throw new ObjectDisposedException ("OracleBFile");
109 throw new NotImplementedException ();
114 throw new ObjectDisposedException ("OracleBFile");
116 throw new ArgumentOutOfRangeException ();
117 throw new NotImplementedException ();
121 public object Value {
124 throw new NotImplementedException ();
128 #endregion // Properties
133 public object Clone ()
135 throw new NotImplementedException ();
139 public long CopyTo (OracleLob destination)
141 throw new NotImplementedException ();
145 public long CopyTo (OracleLob destination, long destinationOffset)
147 throw new NotImplementedException ();
151 public long CopyTo (long sourceOffset, OracleLob destination, long destinationOffset, long amount)
153 throw new NotImplementedException ();
157 public void Dispose ()
159 throw new NotImplementedException ();
163 public override void Flush ()
165 throw new NotImplementedException ();
169 public override int Read (byte[] buffer, int offset, int count)
171 throw new NotImplementedException ();
175 public override long Seek (long offset, SeekOrigin origin)
177 throw new NotImplementedException ();
181 public void SetFileName (string directory, string file)
183 throw new NotImplementedException ();
187 public override void SetLength (long value)
189 throw new InvalidOperationException ();
193 public override void Write (byte[] buffer, int offset, int count)
195 throw new NotSupportedException ();
198 #endregion // Methods