apidoc
[ class tree: apidoc ] [ index: apidoc ] [ all elements ]

Class: File_Archive_Writer_Bzip2

Source Location: /File_Archive-1.5.5/File/Archive/Writer/Bzip2.php

Class Overview

File_Archive_Writer
   |
   --File_Archive_Writer_Bzip2

Compress a single file to Bzip2 format


Variables

Methods


Inherited Variables

Inherited Methods

Class: File_Archive_Writer

File_Archive_Writer::close()
Close the writer, eventually flush the data, write the footer...
File_Archive_Writer::newFile()
Create a new file in the writer
File_Archive_Writer::newFileNeedsMIME()
Returns whether the writer newFile function needs the $mime parameter
File_Archive_Writer::newFromTempFile()
Create a new file in the writer with the content of the physical file $filename and then unlink $filename.
File_Archive_Writer::writeData()
Append the specified data to the writer
File_Archive_Writer::writeFile()
Append the content of the physical file $filename to the writer writeFile($filename) must be equivalent to writeData(file_get_contents($filename)) but can be more efficient

Class Details

[line 37]
Compress a single file to Bzip2 format


[ Top ]


Class Variables

$autoClose =

[line 53]


Type:   mixed


[ Top ]

$bzfile =

[line 48]


Type:   mixed


[ Top ]

$compressionLevel = 9

[line 47]

compressionLevel
  • Deprecated:
  • Access: public

Type:   integer


[ Top ]

$filename =

[line 54]


Type:   mixed


[ Top ]

$innerWriter =

[line 52]


Type:   mixed


[ Top ]

$nbFiles =  0

[line 50]


Type:   mixed


[ Top ]

$stat =

[line 55]


Type:   mixed


[ Top ]

$tmpName =

[line 49]


Type:   mixed


[ Top ]



Method Detail

File_Archive_Writer_Bzip2 (Constructor)   [line 66]

File_Archive_Writer_Bzip2 File_Archive_Writer_Bzip2( string $filename, &$innerWriter, [array $stat = array()], [bool $autoClose = true], File_Archive_Writer $innerWriter)


Parameters:

string   $filename   —  Name to give to the archive
File_Archive_Writer   $innerWriter   —  The inner writer to which the compressed data will be written
array   $stat   —  The stat of the archive (see the PHP stat() function). No element are required in this array
bool   $autoClose   —  Indicate if the inner writer must be closed when closing this
   &$innerWriter   — 

[ Top ]

close   [line 119]

void close( )

Actually write the tmp file to the inner writer Close and delete temporary file
  • See: File_Archive_Writer::close()

Overrides File_Archive_Writer::close() (Close the writer, eventually flush the data, write the footer...)
[ Top ]

newFile   [line 98]

void newFile( $filename, [ $stat = array()], [ $mime = "application/octet-stream"])

  • See: File_Archive_Writer::newFile() Check that one single file is written in the BZip2 archive

Overrides File_Archive_Writer::newFile() (Create a new file in the writer)

Parameters:

   $filename   — 
   $stat   — 
   $mime   — 

[ Top ]

setCompressionLevel   [line 88]

void setCompressionLevel( int $compressionLevel)

Set the compression level. Do nothing because PHP bz2 ext doesn't support this.
  • Deprecated:

Parameters:

int   $compressionLevel   —  From 0 (no compression) to 9 (best compression)

[ Top ]

writeData   [line 141]

void writeData( $data)

  • See: File_Archive_Writer::writeData()

Overrides File_Archive_Writer::writeData() (Append the specified data to the writer)

Parameters:

   $data   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:48:27 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.