saxReader

package
v0.0.0-...-377f66c Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const ONE_KB int = 1024
View Source
const ONE_MB int = ONE_KB * ONE_KB

Variables

This section is empty.

Functions

func TagHandler

func TagHandler(nodeContent []byte, tb *tagBuffer.TagBuffer, contentBuffer *contentBuffer.ContentBuffer, matcher *tagMatcher.TagMatcher, emitterData *contentBuffer.EmitterData, isRecoding bool, isInnerXml bool, lineNumber uint64) (bool, bool, error)

todo: clean up!

Types

type SaxReader

type SaxReader struct {
	ElementBufferSize int
	ContentBufferSize int
	ReaderBufferSize  int
	PathDepthSize     int
	EmitterFn         func(*contentBuffer.EmitterData) bool
	IsInnerXml        bool
}

func NewSaxReaderNoEmitter

func NewSaxReaderNoEmitter() SaxReader

func (*SaxReader) Read

func (sr *SaxReader) Read(reader io.Reader, tm *tagMatcher.TagMatcher) error

Jump to

Keyboard shortcuts

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