Esempio n. 1
0
func newARC(r io.Reader, path string) (decompressor, error) {
	var err error
	if arcReader == nil {
		arcReader, err = webarchive.NewARCReader(r)
	} else {
		err = arcReader.Reset(r)
	}
	return &wa{p: trimWebPath(path), rdr: arcReader}, err
}
Esempio n. 2
0
func newARC(r io.Reader, path string) (decompressor, error) {
	arcReader, err := webarchive.NewARCReader(r)
	return &wa{p: trimWebPath(path), rdr: arcReader}, err
}