StreamHelpers

Overview

The StreamHelpers class provides a set of utility methods used to manipulate and transform data streams.

Location

 

AnsiStringToStream

 

class method AnsiStringToStream(value: String; stream: Stream)

 

static void AnsiStringToStream(String value, Stream stream)

 

Shared Sub AnsiStringToStream(value As String, stream As Stream)

Parameters:

  • value:
  • stream:

BUFFER_SIZE

 

class var BUFFER_SIZE: Int32;

 

static Int32 BUFFER_SIZE

 

Shared FIELD BUFFER_SIZE() As Int32

CopyStreamToStream (Stream): Stream

 

class method CopyStreamToStream(source: Stream): Stream

 

static Stream CopyStreamToStream(Stream source)

 

Shared Function CopyStreamToStream(source As Stream) As Stream

Parameters:

  • source:

CopyStreamToStream (Stream, Stream): Int32

 

class method CopyStreamToStream(source: Stream; destination: Stream): Int32

 

static Int32 CopyStreamToStream(Stream source, Stream destination)

 

Shared Function CopyStreamToStream(source As Stream, destination As Stream) As Int32

Parameters:

  • source:
  • destination:

CopyStreamToStream (Stream, Stream, Int32): Int32

 

class method CopyStreamToStream(source: Stream; destination: Stream; count: Int32): Int32

 

static Int32 CopyStreamToStream(Stream source, Stream destination, Int32 count)

 

Shared Function CopyStreamToStream(source As Stream, destination As Stream, count As Int32) As Int32

Parameters:

  • source:
  • destination:
  • count:

CopyStreamToStream (Stream, Int32): Stream

 

class method CopyStreamToStream(source: Stream; size: Int32): Stream

 

static Stream CopyStreamToStream(Stream source, Int32 size)

 

Shared Function CopyStreamToStream(source As Stream, size As Int32) As Stream

Parameters:

  • source:
  • size:

RestOfStreamToAnsiString

 

class method RestOfStreamToAnsiString(stream: Stream): String

 

static String RestOfStreamToAnsiString(Stream stream)

 

Shared Function RestOfStreamToAnsiString(stream As Stream) As String

Parameters:

  • stream:

RestOfStreamToUtf8String

 

class method RestOfStreamToUtf8String(stream: Stream): String

 

static String RestOfStreamToUtf8String(Stream stream)

 

Shared Function RestOfStreamToUtf8String(stream As Stream) As String

Parameters:

  • stream:

SetStreamCapacity (Stream, Stream)

 

class method SetStreamCapacity(stream: Stream; source: Stream)

 

static void SetStreamCapacity(Stream stream, Stream source)

 

Shared Sub SetStreamCapacity(stream As Stream, source As Stream)

Parameters:

  • stream:
  • source:

SetStreamCapacity (Stream, Stream, Int32)

 

class method SetStreamCapacity(stream: Stream; source: Stream; count: Int32)

 

static void SetStreamCapacity(Stream stream, Stream source, Int32 count)

 

Shared Sub SetStreamCapacity(stream As Stream, source As Stream, count As Int32)

Parameters:

  • stream:
  • source:
  • count:

SetStreamCapacity (Stream, Stream, Int32, Int32)

 

class method SetStreamCapacity(stream: Stream; source: Stream; count: Int32; tailLength: Int32)

 

static void SetStreamCapacity(Stream stream, Stream source, Int32 count, Int32 tailLength)

 

Shared Sub SetStreamCapacity(stream As Stream, source As Stream, count As Int32, tailLength As Int32)

Parameters:

  • stream:
  • source:
  • count:
  • tailLength:

StreamToAnsiString

 

class method StreamToAnsiString(stream: Stream): String

 

static String StreamToAnsiString(Stream stream)

 

Shared Function StreamToAnsiString(stream As Stream) As String

Parameters:

  • stream:

StreamToBuffer (Stream): array of Byte

 

class method StreamToBuffer(stream: Stream): array of Byte

 

static Byte[] StreamToBuffer(Stream stream)

 

Shared Function StreamToBuffer(stream As Stream) As Byte()

Parameters:

  • stream:

StreamToBuffer (Stream, Boolean): array of Byte

 

class method StreamToBuffer(stream: Stream; resetStream: Boolean): array of Byte

 

static Byte[] StreamToBuffer(Stream stream, Boolean resetStream)

 

Shared Function StreamToBuffer(stream As Stream, resetStream As Boolean) As Byte()

Parameters:

  • stream:
  • resetStream:

StreamToSeekableStream

 

class method StreamToSeekableStream(stream: Stream): Stream

 

static Stream StreamToSeekableStream(Stream stream)

 

Shared Function StreamToSeekableStream(stream As Stream) As Stream

Parameters:

  • stream:

StreamToUtf8String

 

class method StreamToUtf8String(stream: Stream): String

 

static String StreamToUtf8String(Stream stream)

 

Shared Function StreamToUtf8String(stream As Stream) As String

Parameters:

  • stream:

Utf8StringToStream

Writes UTF-8 representation of the provided string to the stream.

 

class method Utf8StringToStream(value: String; stream: Stream)

 

static void Utf8StringToStream(String value, Stream stream)

 

Shared Sub Utf8StringToStream(value As String, stream As Stream)

Parameters:

  • value: String value to convert
  • stream: Destination stream

 

BUFFER_SIZE

 

class var BUFFER_SIZE: Int32;

 

static Int32 BUFFER_SIZE

 

Shared FIELD BUFFER_SIZE() As Int32

 

AnsiStringToStream

 

class method AnsiStringToStream(value: String; stream: Stream)

 

static void AnsiStringToStream(String value, Stream stream)

 

Shared Sub AnsiStringToStream(value As String, stream As Stream)

Parameters:

  • value:
  • stream:

CopyStreamToStream (Stream): Stream

 

class method CopyStreamToStream(source: Stream): Stream

 

static Stream CopyStreamToStream(Stream source)

 

Shared Function CopyStreamToStream(source As Stream) As Stream

Parameters:

  • source:

CopyStreamToStream (Stream, Stream): Int32

 

class method CopyStreamToStream(source: Stream; destination: Stream): Int32

 

static Int32 CopyStreamToStream(Stream source, Stream destination)

 

Shared Function CopyStreamToStream(source As Stream, destination As Stream) As Int32

Parameters:

  • source:
  • destination:

CopyStreamToStream (Stream, Stream, Int32): Int32

 

class method CopyStreamToStream(source: Stream; destination: Stream; count: Int32): Int32

 

static Int32 CopyStreamToStream(Stream source, Stream destination, Int32 count)

 

Shared Function CopyStreamToStream(source As Stream, destination As Stream, count As Int32) As Int32

Parameters:

  • source:
  • destination:
  • count:

CopyStreamToStream (Stream, Int32): Stream

 

class method CopyStreamToStream(source: Stream; size: Int32): Stream

 

static Stream CopyStreamToStream(Stream source, Int32 size)

 

Shared Function CopyStreamToStream(source As Stream, size As Int32) As Stream

Parameters:

  • source:
  • size:

RestOfStreamToAnsiString

 

class method RestOfStreamToAnsiString(stream: Stream): String

 

static String RestOfStreamToAnsiString(Stream stream)

 

Shared Function RestOfStreamToAnsiString(stream As Stream) As String

Parameters:

  • stream:

RestOfStreamToUtf8String

 

class method RestOfStreamToUtf8String(stream: Stream): String

 

static String RestOfStreamToUtf8String(Stream stream)

 

Shared Function RestOfStreamToUtf8String(stream As Stream) As String

Parameters:

  • stream:

SetStreamCapacity (Stream, Stream)

 

class method SetStreamCapacity(stream: Stream; source: Stream)

 

static void SetStreamCapacity(Stream stream, Stream source)

 

Shared Sub SetStreamCapacity(stream As Stream, source As Stream)

Parameters:

  • stream:
  • source:

SetStreamCapacity (Stream, Stream, Int32)

 

class method SetStreamCapacity(stream: Stream; source: Stream; count: Int32)

 

static void SetStreamCapacity(Stream stream, Stream source, Int32 count)

 

Shared Sub SetStreamCapacity(stream As Stream, source As Stream, count As Int32)

Parameters:

  • stream:
  • source:
  • count:

SetStreamCapacity (Stream, Stream, Int32, Int32)

 

class method SetStreamCapacity(stream: Stream; source: Stream; count: Int32; tailLength: Int32)

 

static void SetStreamCapacity(Stream stream, Stream source, Int32 count, Int32 tailLength)

 

Shared Sub SetStreamCapacity(stream As Stream, source As Stream, count As Int32, tailLength As Int32)

Parameters:

  • stream:
  • source:
  • count:
  • tailLength:

StreamToAnsiString

 

class method StreamToAnsiString(stream: Stream): String

 

static String StreamToAnsiString(Stream stream)

 

Shared Function StreamToAnsiString(stream As Stream) As String

Parameters:

  • stream:

StreamToBuffer (Stream): array of Byte

 

class method StreamToBuffer(stream: Stream): array of Byte

 

static Byte[] StreamToBuffer(Stream stream)

 

Shared Function StreamToBuffer(stream As Stream) As Byte()

Parameters:

  • stream:

StreamToBuffer (Stream, Boolean): array of Byte

 

class method StreamToBuffer(stream: Stream; resetStream: Boolean): array of Byte

 

static Byte[] StreamToBuffer(Stream stream, Boolean resetStream)

 

Shared Function StreamToBuffer(stream As Stream, resetStream As Boolean) As Byte()

Parameters:

  • stream:
  • resetStream:

StreamToSeekableStream

 

class method StreamToSeekableStream(stream: Stream): Stream

 

static Stream StreamToSeekableStream(Stream stream)

 

Shared Function StreamToSeekableStream(stream As Stream) As Stream

Parameters:

  • stream:

StreamToUtf8String

 

class method StreamToUtf8String(stream: Stream): String

 

static String StreamToUtf8String(Stream stream)

 

Shared Function StreamToUtf8String(stream As Stream) As String

Parameters:

  • stream:

Utf8StringToStream

Writes UTF-8 representation of the provided string to the stream.

 

class method Utf8StringToStream(value: String; stream: Stream)

 

static void Utf8StringToStream(String value, Stream stream)

 

Shared Sub Utf8StringToStream(value As String, stream As Stream)

Parameters:

  • value: String value to convert
  • stream: Destination stream