streams

package
v0.7.25 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: EPL-1.0 Imports: 12 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 NewColumnWriter added in v0.7.6

func NewColumnWriter(writer any, maxColumns any, fields any) any

func NewDynamicWriterProxy added in v0.7.6

func NewDynamicWriterProxy(methods any) any

func NewFileInputStream

func NewFileInputStream(args ...any) any

func NewFileOutputStream

func NewFileOutputStream(args ...any) any

func NewPrintWriter added in v0.7.5

func NewPrintWriter(args ...any) any

func NewPushbackReader added in v0.7.5

func NewPushbackReader(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() []int8

func (*ByteArrayOutputStream) ToString

func (s *ByteArrayOutputStream) ToString() string

type ColumnWriter added in v0.7.6

type ColumnWriter struct {
	// contains filtered or unexported fields
}

func (*ColumnWriter) Deref added in v0.7.6

func (writer *ColumnWriter) Deref() any

func (*ColumnWriter) Flush added in v0.7.6

func (writer *ColumnWriter) Flush()

func (*ColumnWriter) ResolveFieldOrMethod added in v0.7.6

func (writer *ColumnWriter) ResolveFieldOrMethod(name string) (any, bool)

func (*ColumnWriter) Write added in v0.7.6

func (writer *ColumnWriter) Write(data []byte) (int, error)

type DynamicWriterProxy added in v0.7.6

type DynamicWriterProxy struct {
	// contains filtered or unexported fields
}

func (*DynamicWriterProxy) Deref added in v0.7.6

func (proxy *DynamicWriterProxy) Deref() any

func (*DynamicWriterProxy) ResolveFieldOrMethod added in v0.7.6

func (proxy *DynamicWriterProxy) ResolveFieldOrMethod(name string) (any, bool)

func (*DynamicWriterProxy) Write added in v0.7.6

func (proxy *DynamicWriterProxy) Write(data []byte) (int, error)

type FileInputStream

type FileInputStream struct {
	*os.File
	// contains filtered or unexported fields
}

func (*FileInputStream) Read added in v0.7.5

func (s *FileInputStream) Read(buffer []byte) (int, error)

func (*FileInputStream) ReadLine added in v0.7.5

func (s *FileInputStream) ReadLine() any

func (*FileInputStream) ResolveFieldOrMethod added in v0.7.6

func (s *FileInputStream) ResolveFieldOrMethod(name string) (any, bool)

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 PrintWriter added in v0.7.5

type PrintWriter struct {
	io.Writer
	// contains filtered or unexported fields
}

func (*PrintWriter) Append added in v0.7.6

func (writer *PrintWriter) Append(value any) *PrintWriter

func (*PrintWriter) Close added in v0.7.5

func (w *PrintWriter) Close()

func (*PrintWriter) Flush added in v0.7.5

func (w *PrintWriter) Flush()

type PushbackReader added in v0.7.5

type PushbackReader struct {
	*bufio.Reader
	// contains filtered or unexported fields
}

func (*PushbackReader) Close added in v0.7.5

func (s *PushbackReader) Close()

func (*PushbackReader) GetLineNumber added in v0.7.6

func (s *PushbackReader) GetLineNumber() int

func (*PushbackReader) ReadRune added in v0.7.6

func (s *PushbackReader) ReadRune() (rune, int, error)

func (*PushbackReader) ResolveFieldOrMethod added in v0.7.6

func (s *PushbackReader) ResolveFieldOrMethod(name string) (any, bool)

func (*PushbackReader) UnreadRune added in v0.7.6

func (s *PushbackReader) UnreadRune() error

type StringReader

type StringReader struct {
	// contains filtered or unexported fields
}

func (*StringReader) Close

func (s *StringReader) Close()

func (*StringReader) Mark added in v0.7.6

func (s *StringReader) Mark(_ int)

func (*StringReader) Read added in v0.7.6

func (s *StringReader) Read(buffer []byte) (int, error)

func (*StringReader) ReadLine added in v0.7.5

func (s *StringReader) ReadLine() any

func (*StringReader) ReadRune added in v0.7.6

func (s *StringReader) ReadRune() (rune, int, error)

func (*StringReader) Reset added in v0.7.6

func (s *StringReader) Reset()

func (*StringReader) Skip added in v0.7.6

func (s *StringReader) Skip(count any) int64

func (*StringReader) UnreadRune added in v0.7.6

func (s *StringReader) UnreadRune() error

type StringWriter

type StringWriter struct {
	strings.Builder
	// contains filtered or unexported fields
}

func (*StringWriter) Append added in v0.7.6

func (s *StringWriter) Append(value any) *StringWriter

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