Home | History | Annotate | Download | only in tar

Lines Matching refs:Writer

29 // A Writer provides sequential writing of a tar archive in POSIX.1 format.
33 type Writer struct {
34 w io.Writer
45 // NewWriter creates a new Writer writing to w.
46 func NewWriter(w io.Writer) *Writer { return &Writer{w: w} }
49 func (tw *Writer) Flush() error {
79 func (tw *Writer) WriteHeader(hdr *Header) error {
88 func (tw *Writer) writeHeader(hdr *Header, allowPax bool) error {
179 // another. In some situations, this causes the Writer to be confused and
275 func (tw *Writer) writePAXHeader(hdr *Header, paxHeaders map[string]string) error {
324 func (tw *Writer) Write(b []byte) (n int, err error) {
345 // data to the underlying writer.
346 func (tw *Writer) Close() error {