Implements a compressed Stream, in GZip (.gz) format.
More...
|
override bool | CanRead [get] |
| Returns true of this stream can be read from, false otherwise More...
|
|
override bool | CanSeek [get] |
| Returns false. More...
|
|
override bool | CanWrite [get] |
| Returns true if this tsream is writeable, false otherwise More...
|
|
override long | Position [get, set] |
| Gets/sets the current position in the GZipStream . Not suppported. More...
|
|
override long | Length [get] |
| Gets the size of the stream. Not suppported. More...
|
|
Implements a compressed Stream, in GZip (.gz) format.
Definition at line 17 of file GZipStream.cs.
DotZLib.GZipStream.GZipStream |
( |
string |
fileName, |
|
|
CompressLevel |
level |
|
) |
| |
|
inline |
Creates a new file as a writeable GZipStream
- Parameters
-
fileName | The name of the compressed file to create |
level | The compression level to use when adding data |
- Exceptions
-
Definition at line 53 of file GZipStream.cs.
DotZLib.GZipStream.GZipStream |
( |
string |
fileName | ) |
|
|
inline |
Opens an existing file as a readable GZipStream
- Parameters
-
fileName | The name of the file to open |
- Exceptions
-
Definition at line 66 of file GZipStream.cs.
void DotZLib.GZipStream.Dispose |
( |
| ) |
|
|
inline |
override void DotZLib.GZipStream.Flush |
( |
| ) |
|
|
inline |
Flushes the GZipStream
.
In this implementation, this method does nothing. This is because excessive flushing may degrade the achievable compression rates.
Definition at line 265 of file GZipStream.cs.
override int DotZLib.GZipStream.Read |
( |
byte[] |
buffer, |
|
|
int |
offset, |
|
|
int |
count |
|
) |
| |
|
inline |
Attempts to read a number of bytes from the stream.
- Parameters
-
buffer | The destination data buffer |
offset | The index of the first destination byte in buffer |
count | The number of bytes requested |
- Returns
- The number of bytes read
- Exceptions
-
ArgumentNullException | If buffer is null |
ArgumentOutOfRangeException | If count or offset are negative |
ArgumentException | If offset + count is > buffer.Length |
NotSupportedException | If this stream is not readable. |
ObjectDisposedException | If this stream has been disposed. |
Definition at line 154 of file GZipStream.cs.
override int DotZLib.GZipStream.ReadByte |
( |
| ) |
|
|
inline |
Attempts to read a single byte from the stream.
- Returns
- The byte that was read, or -1 in case of error or End-Of-File
Definition at line 181 of file GZipStream.cs.
override long DotZLib.GZipStream.Seek |
( |
long |
offset, |
|
|
SeekOrigin |
origin |
|
) |
| |
|
inline |
Not suppported.
- Parameters
-
- Returns
- Exceptions
-
NotSupportedException | Always thrown |
Definition at line 255 of file GZipStream.cs.
override void DotZLib.GZipStream.SetLength |
( |
long |
value | ) |
|
|
inline |
Not supported.
- Parameters
-
- Exceptions
-
NotSupportedException | Always thrown |
Definition at line 243 of file GZipStream.cs.
override void DotZLib.GZipStream.Write |
( |
byte[] |
buffer, |
|
|
int |
offset, |
|
|
int |
count |
|
) |
| |
|
inline |
Writes a number of bytes to the stream
- Parameters
-
- Exceptions
-
ArgumentNullException | If buffer is null |
ArgumentOutOfRangeException | If count or offset are negative |
ArgumentException | If offset + count is > buffer.Length |
NotSupportedException | If this stream is not writeable. |
ObjectDisposedException | If this stream has been disposed. |
Definition at line 199 of file GZipStream.cs.
override void DotZLib.GZipStream.WriteByte |
( |
byte |
value | ) |
|
|
inline |
Writes a single byte to the stream
- Parameters
-
value | The byte to add to the stream. |
- Exceptions
-
NotSupportedException | If this stream is not writeable. |
ObjectDisposedException | If this stream has been disposed. |
Definition at line 226 of file GZipStream.cs.
override bool DotZLib.GZipStream.CanRead |
|
get |
Returns true of this stream can be read from, false otherwise
Definition at line 81 of file GZipStream.cs.
override bool DotZLib.GZipStream.CanSeek |
|
get |
override bool DotZLib.GZipStream.CanWrite |
|
get |
Returns true if this tsream is writeable, false otherwise
Definition at line 104 of file GZipStream.cs.
override long DotZLib.GZipStream.Length |
|
get |
Gets the size of the stream. Not suppported.
In this implementation this property is not supported
- Exceptions
-
NotSupportedException | Always thrown |
Definition at line 293 of file GZipStream.cs.
override long DotZLib.GZipStream.Position |
|
getset |
Gets/sets the current position in the GZipStream
. Not suppported.
In this implementation this property is not supported
- Exceptions
-
NotSupportedException | Always thrown |
Definition at line 276 of file GZipStream.cs.
The documentation for this class was generated from the following file: