Streams

The abstract Stream class is the base for all streams.

Stream class members

Reading


public abstract bool CanRead { get; }
public abstract int Read (byte[] buffer, int offset, int count)
public virtual int ReadByte();

Writing


public abstract bool CanWrite { get; }
public abstract void Write (byte[] buffer, int offset, int count);
public virtual void WriteByte (byte value);

Seeking


public abstract bool CanSeek { get; }
public abstract long Position { get; set; } 
public abstract void SetLength (long value); 
public abstract long Length { get; }
public abstract long Seek (long offset, SeekOrigin origin);

Closing/flushing


public virtual void Close();
public void Dispose();
public abstract void Flush();

Timeouts


public virtual bool CanTimeout { get; } 
public virtual int ReadTimeout { get; set; } 
public virtual int WriteTimeout { get; set; }
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.