FileStream Class |
Namespace: CMS.AmazonStorage
public class FileStream : FileStream, IMultiPartUploadStream
The FileStream type exposes the following members.
Name | Description | |
---|---|---|
FileStream(String, FileMode) |
Initializes new instance and initializes new system file stream.
| |
FileStream(String, FileMode, FileAccess) |
Initializes new instance and initializes new system file stream.
| |
FileStream(String, FileMode, FileAccess, FileShare) |
Initializes new instance and initializes new system file stream.
| |
FileStream(String, FileMode, FileAccess, FileShare, Int32) |
Initializes new instance and initializes new system file stream.
|
Name | Description | |
---|---|---|
CanRead |
Gets a value indicating whether the current stream supports reading.
(Overrides StreamCanRead.) | |
CanSeek |
Gets a value indicating whether the current stream supports seeking.
(Overrides StreamCanSeek.) | |
CanWrite |
Gets a value indicating whether the current stream supports writing.
(Overrides StreamCanWrite.) | |
Length |
Length of stream.
(Overrides StreamLength.) | |
MaximalPartSize |
Maximal size of the part used in multipart upload process to Amazon S3 storage.
| |
MinimalPartSize |
Returns minimal size of the part used in multipart upload process to Amazon S3 storage.
| |
Path |
Stream path
(Inherited from FileStream.) | |
Position |
Gets or sets position of current stream.
(Overrides StreamPosition.) |
Name | Description | |
---|---|---|
AbortMultiPartUpload |
Aborts multipart upload to Amazon S3 storage and removes all resources already uploaded.
| |
Close |
Closes current stream.
(Overrides StreamClose.) | |
CompleteMultiPartUploadProcess |
Uploads one large file to Amazon S3 storage in smaller parts.
| |
Dispose |
Releases all unmanaged and optionally managed resources.
(Overrides StreamDispose(Boolean).) | |
Flush |
Clears all buffers for this stream and causes any buffered data to be written to the underlying device.
(Overrides StreamFlush.) | |
InitFileStream |
Initializes file stream object.
| |
InitMultiPartUpload |
Inits multipart upload for given path.
| |
LogFileOperation |
Logs the file operation. Logs the file operation to the file and to current request log for debugging.
(Inherited from FileStream.) | |
Read |
Reads data from stream and stores them into array.
(Overrides StreamRead(Byte, Int32, Int32).) | |
Seek |
Sets the position within the current stream to the specified value.
(Overrides StreamSeek(Int64, SeekOrigin).) | |
SetLength |
Set length to stream.
(Overrides StreamSetLength(Int64).) | |
UploadStreamContentAsMultiPart |
Uploads stream's content to Amazon S3 storage as one part of the file in multipart upload process
identified by uploadSessionId.
| |
Write |
Writes sequence of bytes to stream.
(Overrides StreamWrite(Byte, Int32, Int32).) | |
WriteByte |
Writes byte to the stream.
(Overrides StreamWriteByte(Byte).) |