Captures the bytes from an output stream in a buffer.
Captures the bytes from an output stream in a buffer.
the function that recevies an output stream
the byte array
Directly copies the bytes from a buffer to an output stream.
Directly copies the bytes from a buffer to an output stream.
the input stream
the output stream
the number of bytes copied
Directly copies the bytes from an input stream to an output stream, using only a small intermediate buffer.
Directly copies the bytes from an input stream to an output stream, using only a small intermediate buffer.
the input stream
the output stream
the number of bytes copied
Copies the text from a string to an output stream line by line, allowing alteration of the text.
Copies the text from a string to an output stream line by line, allowing alteration of the text. This might be used to rewrite URLs in body content, for example.
the source text
the output stream
the character set, default UTF-8
an optional function for changing each line of text before writing it out. This is applied line by line.
Copies the text from an input stream to an output stream line by line, allowing alteration of the text.
Copies the text from an input stream to an output stream line by line, allowing alteration of the text. This might be used to rewrite URLs in body content, for example.
the input stream
the output stream
the character set, default UTF-8
an optional function for changing each line of text before writing it out. This is applied line by line.
Copies the bytes from an input stream into a new byte array, then closes the input stream.
Copies the bytes from an input stream into a new byte array, then closes the input stream.
the input stream
the initial size of the buffer
the new byte array
Copies the bytes from an input stream into a new byte buffer, then closes the input stream.
Copies the bytes from an input stream into a new byte buffer, then closes the input stream.
the input stream
the new byte buffer
Efficiently counts all occurrences of a given character within a string.
Efficiently divides a string at the first occurrence of a separator character.
Efficiently divides a string at the first occurrence of a separator character.
a tuple of the string before and the string after the separator
Adds surrounding double quotes from a string.
Efficiently splits a string at all occurrences of a given character.
Efficiently splits a string at all occurrences of a given character. The returned list always contains at least one item, even if it is blank.
Efficiently splits a string at all occurrences of a given character except those inside double quotes.
Efficiently splits a string at all occurrences of a given character except those inside double quotes. The returned list always contains at least one item, even if it is blank.
Removes surrounding double quotes from a string.
Copies the bytes from an input stream into a new byte buffer, then closes the input stream.
Copies the bytes from an input stream into a new byte buffer, then closes the input stream.
the input stream
the initial size of the buffer
the new byte buffer
(Since version since v0.21.5) No longer needed
Copies the bytes from an input stream into a new byte buffer, then closes the input stream.
Copies the bytes from an input stream into a new byte buffer, then closes the input stream.
the input stream
the new byte buffer
(Since version since v0.21.5) No longer needed