Module libxml2 :: Class outputBuffer
[hide private]
[frames] | no frames]

Class outputBuffer

source code

 ioWrapper --+    
             |    
ioWriteWrapper --+
                 |
                outputBuffer

Instance Methods [hide private]
 
__init__(self, _obj=None) source code
 
htmlDocContentDumpFormatOutput(self, cur, encoding, format)
Dump an HTML document.
source code
 
htmlDocContentDumpOutput(self, cur, encoding)
Dump an HTML document.
source code
 
htmlNodeDumpFormatOutput(self, doc, cur, encoding, format)
Dump an HTML node, recursive behaviour,children are printed too.
source code
 
htmlNodeDumpOutput(self, doc, cur, encoding)
Dump an HTML node, recursive behaviour,children are printed too, and formatting returns/spaces are added.
source code
 
nodeDumpOutput(self, doc, cur, level, format, encoding)
Dump an XML node, recursive behaviour, children are printed too.
source code
 
saveFileTo(self, cur, encoding)
Dump an XML document to an I/O buffer.
source code
 
saveFormatFileTo(self, cur, encoding, format)
Dump an XML document to an I/O buffer.
source code
 
write(self, len, buf)
Write the content of the array in the output I/O buffer This routine handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e.
source code
 
writeString(self, str)
Write the content of the string in the output I/O buffer This routine handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e.
source code

Inherited from ioWriteWrapper: __del__, close, flush

Inherited from ioWrapper: io_close, io_flush, io_read, io_write

Method Details [hide private]

__init__(self, _obj=None)
(Constructor)

source code 
Overrides: ioWriteWrapper.__init__

htmlDocContentDumpOutput(self, cur, encoding)

source code 
Dump an HTML document. Formating return/spaces are added.

nodeDumpOutput(self, doc, cur, level, format, encoding)

source code 
Dump an XML node, recursive behaviour, children are printed too. Note that @format = 1 provide node indenting only if xmlIndentTreeOutput = 1 or xmlKeepBlanksDefault(0) was called

saveFileTo(self, cur, encoding)

source code 
Dump an XML document to an I/O buffer. Warning ! This call xmlOutputBufferClose() on buf which is not available after this call.

saveFormatFileTo(self, cur, encoding, format)

source code 
Dump an XML document to an I/O buffer. Warning ! This call xmlOutputBufferClose() on buf which is not available after this call.

write(self, len, buf)

source code 
Write the content of the array in the output I/O buffer This routine handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes.

writeString(self, str)

source code 
Write the content of the string in the output I/O buffer This routine handle the I18N transcoding from internal UTF-8 The buffer is lossless, i.e. will store in case of partial or delayed writes.