Kamaelia docs : Kamaelia.File.BetterReading.IntelligentFileReader

Kamaelia.File.BetterReading.IntelligentFileReader

For examples and more explanations, see the module level docs.


class IntelligentFileReader(Axon.Component.component)

IntelligentFileReader(filename, chunksize, maxqueue) -> file reading component

Creates a file reader component. Reads a chunk of chunksize bytes, using the Selector to avoid having to block, pausing when the length of its send-queue exceeds maxqueue chunks.

Inboxes

  • control : for shutdown signalling
  • inbox : wake me up by sending anything here
  • _selectorready : ready to read

Outboxes

  • debug : information designed to aid debugging
  • outbox : data output
  • signal : outputs 'producerFinished' after all data has been read
  • _selectorask : ask the Selector to notify readiness to read on a file

Feedback

Got a problem with the documentation? Something unclear that could be clearer? Want to help improve it? Constructive criticism is very welcome - especially if you can suggest a better rewording!

Please leave you feedback here in reply to the documentation thread in the Kamaelia blog.

-- Automatic documentation generator, 19 Oct 2008 at 14:29:09 UTC/GMT

This is a page from the Kamaelia website. You can find the original here: