MCPcopy Index your code
hub / github.com/XmirrorSecurity/OpenSCA-cli / Close

Method Close

opensca/sca/java/xml/marshal.go:314–316  ·  view source on GitHub ↗

Close the Encoder, indicating that no more data will be written. It flushes any buffered XML to the underlying writer and returns an error if the written XML is invalid (e.g. by containing unclosed elements).

()

Source from the content-addressed store, hash-verified

312// any buffered XML to the underlying writer and returns an error if the
313// written XML is invalid (e.g. by containing unclosed elements).
314func (enc *Encoder) Close() error {
315 return enc.p.Close()
316}
317
318type printer struct {
319 w *bufio.Writer

Callers 15

MarshalFunction · 0.95
MarshalIndentFunction · 0.95
SaveFunction · 0.45
LoadFunction · 0.45
ParsePythonWithEnvFunction · 0.45
OpenReaderMethod · 0.45
DownloadUrlFromReposFunction · 0.45
xtarFunction · 0.45
xgzFunction · 0.45
xbz2Function · 0.45
xrarFunction · 0.45
downloadFromHttpFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected