/// <summary> /// Initializes a new instance of the <see cref="T:SystemWrapper.IO.Compression.DeflateStreamWrap"/> class. /// </summary> /// <param name="stream">The stream to compress or decompress.</param> /// <param name="mode">One of the CompressionMode values that indicates the action to take.</param> public DeflateStreamWrap(IStreamWrap stream, CompressionMode mode) { Initialize(stream, mode); }
/// <summary> /// Initializes a new instance of the BinaryReader class based on the supplied stream and a specific character encoding. /// </summary> /// <param name="stream">The supplied stream.</param> /// <param name="encoding">The character encoding.</param> public BinaryReaderWrap(IStreamWrap stream, Encoding encoding) { Initialize(stream.StreamInstance, encoding); }
/// <summary> /// Initializes a new instance of the BinaryReader class based on the supplied stream and using UTF8Encoding. /// </summary> /// <param name="input">A <see cref="T:System.IO.Stream"/> object.</param> public BinaryReaderWrap(IStreamWrap input) { Initialize(input.StreamInstance); }
/// <summary> /// Initializes a new instance of the BinaryWriterWrap class based on the supplied stream and using UTF-8 as the encoding for strings. /// </summary> /// <param name="output">The output stream.</param> public BinaryWriterWrap(IStreamWrap output) { Initialize(output.StreamInstance); }
/// <summary> /// Initializes a new instance of the BinaryWriterWrap class based on the supplied stream and a specific character encoding. /// </summary> /// <param name="output">The supplied stream.</param> /// <param name="encoding">The character encoding.</param> public BinaryWriterWrap(IStreamWrap output, Encoding encoding) { Initialize(output.StreamInstance, encoding); }
/// <summary> /// Initializes a new instance of the <see cref="T:System.IO.StreamReader"/> class for the specified stream. /// </summary> /// <param name="stream">The stream wrapper to write to.</param> public StreamReaderWrap(IStreamWrap stream) { Initialize(stream); }
public IStreamWrap Synchronized(IStreamWrap stream) { throw new NotImplementedException(); }
public DeflateStreamWrap(IStreamWrap stream, CompressionMode mode) { Initialize(stream, mode); }
/// <summary> /// Initializes a new instance of the BinaryReader class based on the supplied stream and a specific character encoding. /// </summary> /// <param name="stream">The supplied stream.</param> /// <param name="encoding">The character encoding.</param> public void Initialize(IStreamWrap stream, Encoding encoding) { BinaryReaderInstance = new BinaryReader(stream.StreamInstance, encoding); }
/// <summary> /// Initializes a new instance of the BinaryReader class based on the supplied stream and using UTF8Encoding. /// </summary> /// <param name="input">A <see cref="T:System.IO.Stream"/> object.</param> public void Initialize(IStreamWrap input) { BinaryReaderInstance = new BinaryReader(input.StreamInstance); }
/// <summary> /// Initializes a new instance of the <see cref="T:SystemWrapper.IO.Compression.DeflateStreamWrap"/> class. /// </summary> /// <param name="stream">The stream to compress or decompress.</param> /// <param name="mode">One of the CompressionMode values that indicates the action to take.</param> public void Initialize(IStreamWrap stream, CompressionMode mode) { DeflateStreamInstance = new DeflateStream(stream.StreamInstance, mode); }
/// <summary> /// Initializes a new instance of the BinaryWriterWrap class based on the supplied stream and a specific character encoding. /// </summary> /// <param name="output">The supplied stream.</param> /// <param name="encoding">The character encoding.</param> public void Initialize(IStreamWrap output, Encoding encoding) { BinaryWriterInstance = new BinaryWriter(output.StreamInstance, encoding); }
public void Initialize(IStreamWrap stream, CompressionMode mode) { DeflateStreamInstance = new DeflateStream(stream.StreamInstance, mode); }
public IStreamWrap Synchronized(IStreamWrap stream) { return new MemoryStreamWrap(Stream.Synchronized(stream.StreamInstance)); }
/// <summary> /// Initializes a new instance of the <see cref="T:System.IO.StreamReader"/> class for the specified stream. /// </summary> /// <param name="stream">The stream wrapper to write to.</param> public void Initialize(IStreamWrap stream) { StreamReaderInstance = new StreamReader(stream.StreamInstance); }
public void WriteTo(IStreamWrap stream) { MemoryStreamInstance.WriteTo(stream.StreamInstance); }
/// <summary> /// Initializes a new instance of the BinaryWriterWrap class based on the supplied stream and using UTF-8 as the encoding for strings. /// </summary> /// <param name="output">The output stream.</param> public void Initialize(IStreamWrap output) { BinaryWriterInstance = new BinaryWriter(output.StreamInstance); }
public IStreamWrap Synchronized(IStreamWrap stream) { return(new FileStreamWrap(Stream.Synchronized(stream.StreamInstance))); }
/// <inheritdoc /> public void WriteTo(IStreamWrap stream) { MemoryStreamInstance.WriteTo(stream.StreamInstance); }