JHStream Class

DCSoft.DBUtilityGeneric

JHStream Class
提供对内存流的处理方法,该类为密封类
Inheritance Hierarchy
SystemObject  DCSoft.Utility.IOJHStream

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
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberToBuffer(Stream)
将内存流转换为字节数组,异常直接抛出
Public methodStatic memberToBuffer(String)
将指定文件转换为字节数组,异常直接抛出
Public methodStatic memberToFile(String, Byte)
使用 UTF-8 编码格式,将字节序列写入到指定的文件,如果文件存在,则会被覆盖,异常直接抛出
Public methodStatic memberToFile(String, Stream)
使用 UTF-8 编码格式,将流写入到指定的文件,如果文件存在,则会被覆盖,异常直接抛出
Public methodStatic memberToFile(String, Byte, Encoding)
使用指定的编码格式,将字节序列写入到指定的文件,如果文件存在,则会被覆盖,异常直接抛出
Public methodStatic memberToFile(String, Stream, Encoding)
使用指定的编码格式,将流写入到指定的文件,如果文件存在,则会被覆盖,异常直接抛出
Public methodStatic memberToStream(Byte)
字节数组转换为内存流,异常直接抛出
Public methodStatic memberToStream(String)
将指定的文件转换为内存流,文件不存在则返回 null,异常直接抛出
Public methodToString (Inherited from Object.)
Top
See Also