FtpResponseStream Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides a stream to read from or write to sockets.

Inheritance Hierarchy

System. . :: . .Object
  System. . :: . .MarshalByRefObject
    System.IO. . :: . .Stream
      Microsoft.SPOT.Net..::..FtpResponseStream

Namespace:  Microsoft.SPOT.Net
Assembly:  System.Ftp (in System.Ftp.dll)

Syntax

'Declaration
Public Class FtpResponseStream _
    Inherits Stream
public class FtpResponseStream : Stream
public ref class FtpResponseStream : public Stream
type FtpResponseStream =  
    class
        inherit Stream
    end
public class FtpResponseStream extends Stream

The FtpResponseStream type exposes the following members.

Constructors

  Name Description
Public method FtpResponseStream(FtpListenerResponse) Initializes a new instance of the FtpResponseStream class with the specified response.
Public method FtpResponseStream(FtpListenerResponse, Stream) Initializes a new instance of the FtpResponseStream class with the specified response and stream.

Top

Properties

  Name Description
Public property CanRead Gets a value that indicates whether the stream supports reading. (Overrides Stream. . :: . .CanRead.)
Public property CanSeek Gets a value that indicates whether the stream supports seeking. (Overrides Stream. . :: . .CanSeek.)
Public property CanTimeout Gets a value that determines whether the current stream can time out. (Inherited from Stream.)
Public property CanWrite Gets a value that indicates whether the stream supports writing. (Overrides Stream. . :: . .CanWrite.)
Public property Length Gets the length of the stream. (Overrides Stream. . :: . .Length.)
Public property Position Gets or sets the position. (Overrides Stream. . :: . .Position.)
Public property ReadTimeout Gets or sets a value, in milliseconds, that determines how long the stream will attempt to read before timing out. (Inherited from Stream.)
Public property WriteTimeout Gets or sets a value, in miliseconds, that determines how long the stream will attempt to write before timing out. (Inherited from Stream.)

Top

Methods

  Name Description
Public method Close Closes the response stream. (Overrides Stream. . :: . .Close() () () ().)
Public method Dispose() () () () Releases all resources used by the Stream. (Inherited from Stream.)
Protected method Dispose(Boolean) Releases the unmanaged resources used by the Stream and optionally releases the managed resources. (Inherited from Stream.)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Cleans up resources. (Inherited from Stream.)
Public method Flush Flushes the response stream. (Overrides Stream. . :: . .Flush() () () ().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Read(String%) Reads from the internal buffer.
Public method Read(array<Byte> [] () [] [], Int32, Int32) Reads from the internal buffer. (Overrides Stream. . :: . .Read(array<Byte> [] () [] [], Int32, Int32).)
Public method ReadByte Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream. (Inherited from Stream.)
Public method ReadTo Read data from the socket and writes the data to the specified file stream.
Public method Seek Seeks a position in the stream. (Overrides Stream. . :: . .Seek(Int64, SeekOrigin).)
Public method SetLength Set the length. (Overrides Stream. . :: . .SetLength(Int64).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method Write(FileStream) Reads data from the stream and writes to the socket.
Public method Write(FileSystemInfo) Write a FileInfo or DirectoryInfo to the socket
Public method Write(String) Writes a string to the buffer.
Public method Write(array<Byte> [] () [] [], Int32, Int32) Writes to the buffer. (Overrides Stream. . :: . .Write(array<Byte> [] () [] [], Int32, Int32).)
Public method WriteByte Writes a byte to the current position in the stream and advances the position within the stream by one byte. (Inherited from Stream.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SPOT.Net Namespace