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 {
25 public static readonly new OracleBFile Null = new OracleBFile ();
27 OracleConnection connection;
35 internal OracleBFile () {
38 #endregion // Constructors
42 public override bool CanRead {
43 get { return (IsNull || isOpen); }
46 public override bool CanSeek {
47 get { return (IsNull || isOpen); }
50 public override bool CanWrite {
54 public OracleConnection Connection {
55 get { return connection; }
58 public string DirectoryName {
62 throw new ObjectDisposedException ("OracleBFile");
63 throw new NotImplementedException ();
67 public bool FileExists {
71 throw new ObjectDisposedException ("OracleBFile");
72 if (Connection.State == ConnectionState.Closed)
73 throw new InvalidOperationException ();
74 throw new NotImplementedException ();
78 public string FileName {
82 throw new ObjectDisposedException ("OracleBFile");
85 throw new NotImplementedException ();
90 get { return !notNull; }
93 public override long Length {
97 throw new ObjectDisposedException ("OracleBFile");
98 throw new NotImplementedException ();
102 public override long Position {
106 throw new ObjectDisposedException ("OracleBFile");
107 throw new NotImplementedException ();
112 throw new ObjectDisposedException ("OracleBFile");
114 throw new ArgumentOutOfRangeException ();
115 throw new NotImplementedException ();
119 public object Value {
122 throw new NotImplementedException ();
126 #endregion // Properties
131 public object Clone () {
132 throw new NotImplementedException ();
136 public long CopyTo (OracleLob destination) {
137 throw new NotImplementedException ();
141 public long CopyTo (OracleLob destination, long destinationOffset) {
142 throw new NotImplementedException ();
146 public long CopyTo (long sourceOffset, OracleLob destination, long destinationOffset, long amount) {
147 throw new NotImplementedException ();
151 public void Dispose () {
152 throw new NotImplementedException ();
156 public override void Flush () {
157 throw new NotImplementedException ();
161 public override int Read (byte[] buffer, int offset, int count) {
162 throw new NotImplementedException ();
166 public override long Seek (long offset, SeekOrigin origin) {
167 throw new NotImplementedException ();
171 public void SetFileName (string directory, string file) {
172 throw new NotImplementedException ();
176 public override void SetLength (long value) {
177 throw new InvalidOperationException ();
181 public override void Write (byte[] buffer, int offset, int count) {
182 throw new NotSupportedException ();
185 #endregion // Methods