streams

package
v0.7.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2026 License: EPL-1.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package streams exposes the most-used java.io stream classes over Go io.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBufferedInputStream

func NewBufferedInputStream(args ...any) any

func NewBufferedOutputStream

func NewBufferedOutputStream(args ...any) any

func NewByteArrayInputStream

func NewByteArrayInputStream(args ...any) any

func NewByteArrayOutputStream

func NewByteArrayOutputStream(args ...any) any

func NewFileInputStream

func NewFileInputStream(args ...any) any

func NewFileOutputStream

func NewFileOutputStream(args ...any) any

func NewStringReader

func NewStringReader(args ...any) any

func NewStringWriter

func NewStringWriter(args ...any) any

Types

type BufferedInputStream

type BufferedInputStream struct{ *bufio.Reader }

type BufferedOutputStream

type BufferedOutputStream struct{ *bufio.Writer }

type ByteArrayInputStream

type ByteArrayInputStream struct{ *bytes.Reader }

func (*ByteArrayInputStream) Available

func (s *ByteArrayInputStream) Available() int

func (*ByteArrayInputStream) Close

func (s *ByteArrayInputStream) Close()

type ByteArrayOutputStream

type ByteArrayOutputStream struct{ bytes.Buffer }

func (*ByteArrayOutputStream) Close

func (s *ByteArrayOutputStream) Close()

func (*ByteArrayOutputStream) Size

func (s *ByteArrayOutputStream) Size() int

func (*ByteArrayOutputStream) ToByteArray

func (s *ByteArrayOutputStream) ToByteArray() []byte

func (*ByteArrayOutputStream) ToString

func (s *ByteArrayOutputStream) ToString() string

type FileInputStream

type FileInputStream struct{ *os.File }

type FileOutputStream

type FileOutputStream struct{ *os.File }

type InputStream

type InputStream interface{ Read([]byte) (int, error) }

type OutputStream

type OutputStream interface{ Write([]byte) (int, error) }

type StringReader

type StringReader struct{ *strings.Reader }

func (*StringReader) Close

func (s *StringReader) Close()

type StringWriter

type StringWriter struct{ strings.Builder }

func (*StringWriter) Close

func (s *StringWriter) Close()

func (*StringWriter) ToString

func (s *StringWriter) ToString() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL