类库说明文档
JHStream Class |
提供对内存流的处理方法,该类为密封类
Inheritance Hierarchy
Namespace: DCSoft.Utility.IO
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public sealed class JHStream
The JHStream type exposes the following members.
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
ToBuffer(Stream) |
将内存流转换为字节数组,异常直接抛出
| |
ToBuffer(String) |
将指定文件转换为字节数组,异常直接抛出
| |
ToFile(String, Byte) |
使用 UTF-8 编码格式,将字节序列写入到指定的文件,如果文件存在,则会被覆盖,异常直接抛出
| |
ToFile(String, Stream) |
使用 UTF-8 编码格式,将流写入到指定的文件,如果文件存在,则会被覆盖,异常直接抛出
| |
ToFile(String, Byte, Encoding) |
使用指定的编码格式,将字节序列写入到指定的文件,如果文件存在,则会被覆盖,异常直接抛出
| |
ToFile(String, Stream, Encoding) |
使用指定的编码格式,将流写入到指定的文件,如果文件存在,则会被覆盖,异常直接抛出
| |
ToStream(Byte) |
字节数组转换为内存流,异常直接抛出
| |
ToStream(String) |
将指定的文件转换为内存流,文件不存在则返回 null,异常直接抛出
| |
ToString | (Inherited from Object.) |
See Also