JHStream Methods

DCSoft.DBUtilityGeneric

JHStream Methods

The JHStream type exposes the following members.

Methods
  Name Description
Public method Equals (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method Static member ToBuffer(Stream)
将内存流转换为字节数组,异常直接抛出
Public method Static member ToBuffer(String)
将指定文件转换为字节数组,异常直接抛出
Public method Static member ToFile(String, Byte)
使用 UTF-8 编码格式,将字节序列写入到指定的文件,如果文件存在,则会被覆盖,异常直接抛出
Public method Static member ToFile(String, Stream)
使用 UTF-8 编码格式,将流写入到指定的文件,如果文件存在,则会被覆盖,异常直接抛出
Public method Static member ToFile(String, Byte, Encoding)
使用指定的编码格式,将字节序列写入到指定的文件,如果文件存在,则会被覆盖,异常直接抛出
Public method Static member ToFile(String, Stream, Encoding)
使用指定的编码格式,将流写入到指定的文件,如果文件存在,则会被覆盖,异常直接抛出
Public method Static member ToStream(Byte)
字节数组转换为内存流,异常直接抛出
Public method Static member ToStream(String)
将指定的文件转换为内存流,文件不存在则返回 null,异常直接抛出
Public method ToString (Inherited from Object.)
Top
See Also