Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEncoding ¶
GetEncoding get encoding
Types ¶
type CompressionMethod ¶
type CompressionMethod uint16
CompressionMethod compress method see https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT
const ( Store CompressionMethod = 0 Deflate CompressionMethod = 8 BZIP2 CompressionMethod = 12 LZMA CompressionMethod = 14 LZMA2 CompressionMethod = 33 ZSTD CompressionMethod = 93 XZ CompressionMethod = 95 JPEG CompressionMethod = 96 WavPack CompressionMethod = 97 PPMd CompressionMethod = 98 AES CompressionMethod = 99 )
CompressionMethod value
type Extractor ¶
type Extractor struct {
// contains filtered or unexported fields
}
Extractor todo
func NewExtractor ¶
func NewExtractor(fd *os.File, eo *foundation.ExtractOptions) (*Extractor, error)
NewExtractor new extractor
func (*Extractor) DecodeFileName ¶
func (e *Extractor) DecodeFileName(header zip.FileHeader) string
DecodeFileName decode filename
type Resetter ¶
type Resetter interface { // Reset discards any buffered data and resets the Resetter as if it was // newly initialized with the given reader. Reset(r io.Reader) error }
Resetter resets a ReadCloser returned by NewReader or NewReaderDict to switch to a new underlying Reader. This permits reusing a ReadCloser instead of allocating a new one.
Click to show internal directories.
Click to hide internal directories.