File |
public class FileStream : Stream
The FileStream type exposes the following members.
| Name | Description | |
|---|---|---|
| FileStream(String, FileMode) | Initializes a new instance of the CrestronIO.FileStream class with the specified path and creation mode. | |
| FileStream(String, FileMode, FileAccess) | Initialize the FileStream with the specified path, mode, and access. | |
| FileStream(String, FileMode, FileAccess, FileShare) | Initializes a new instance of the CrestronIO.FileStream class with the specified path, creation mode, read/write permission, and sharing permission. |
| Name | Description | |
|---|---|---|
| CanRead |
Returns true if the stream supports reading.
(Overrides StreamCanRead) | |
| CanSeek |
Returns true if the stream supports seeking.
(Overrides StreamCanSeek) | |
| CanTimeout |
Gets a value that determines whether the current stream can time out.
(Overrides StreamCanTimeout) | |
| CanWrite |
Returns true if the stream supports writing.
(Overrides StreamCanWrite) | |
| IsAsync | Gets a value indicating whether the FileStream was opened asynchronously or synchronously. | |
| Length |
Get the length of the stream in bytes.
(Overrides StreamLength) | |
| Name | Gets the name of the FileStream that was passed to the constructor. | |
| Position |
Get or set the current position in the stream.
(Overrides StreamPosition) | |
| ReadTimeout |
Gets or sets a value, in milliseconds, that determines how long the stream
will attempt to read before timing out.
(Overrides StreamReadTimeout) | |
| WriteTimeout |
Gets or sets a value, in milliseconds, that determines how long the stream
will attempt to write before timing out.
(Overrides StreamWriteTimeout) |
| Name | Description | |
|---|---|---|
| BeginRead |
Begins an asynchronous read operation.
(Inherited from Stream) | |
| BeginWrite |
Begins an asynchronous write operation.
(Inherited from Stream) | |
| Close |
Closes the current stream and releases any resources (such as sockets and
file handles) associated with the current stream.
(Inherited from Stream) | |
| Dispose |
Releases all resources used by the Crestron.SimplSharp.CrestronStream.Stream.
(Inherited from Stream) | |
| Dispose(Boolean) |
Checks to see if Dispose has already been called.
(Overrides StreamDispose(Boolean)) | |
| EndRead |
Waits for the pending asynchronous read to complete.
(Inherited from Stream) | |
| EndWrite |
Ends an asynchronous write operation.
(Inherited from Stream) | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| Finalize |
Destructor for FileStream.
(Overrides ObjectFinalize) | |
| Flush |
Clears all buffers for the stream and writes any cleared data to the file system.
(Overrides StreamFlush) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| Read |
Read bytes from a stream in to the specified buffer.
(Overrides StreamRead(Byte, Int32, Int32)) | |
| 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.
(Overrides StreamReadByte) | |
| Seek |
Sets the current position of the stream.
(Overrides StreamSeek(Int64, SeekOrigin)) | |
| SetLength |
Sets the length of the stream
(Overrides StreamSetLength(Int64)) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) | |
| Write(String, Encoding) | Function to write a string to the stream using the specified encoding. | |
| Write(Byte, Int32, Int32) |
Write bytes to a stream using the buffer as data.
(Overrides StreamWrite(Byte, Int32, Int32)) | |
| WriteByte |
Writes a byte to the current position in the stream and advances the position
within the stream by one byte.
(Overrides StreamWriteByte(Byte)) |