Package gmisclib :: Module chunkio :: Class datachunk
[frames] | no frames]

Class datachunk

source code


Low level file I/O operations. This class represents a file as a sequence of white-space separated chunks of data.

Instance Methods
 
__init__(self, fd)
Constructor.
source code
 
more(self)
Returns False if the data source is empty.
source code
 
readchunk(self)
Read in the next white-space delimited chunk of text.
source code
 
groupend(self) (Inherited from gmisclib.chunkio.chunk) source code
 
groupstart(self) (Inherited from gmisclib.chunkio.chunk) source code
 
read_NumArray(self) (Inherited from gmisclib.chunkio.chunk) source code
 
read_array(self, fcn)
Read an array of data values. (Inherited from gmisclib.chunkio.chunk)
source code
 
read_array_of(self, fcn)
Read an array of data values. (Inherited from gmisclib.chunkio.chunk)
source code
 
read_dict(self, fcn)
Read a dictionary of data values. (Inherited from gmisclib.chunkio.chunk)
source code
 
read_dict_of(self, fcn)
Read a dictionary of data values. (Inherited from gmisclib.chunkio.chunk)
source code
 
read_float(self) (Inherited from gmisclib.chunkio.chunk) source code
 
read_tuple(self, fcn)
Read a tuple of data values. (Inherited from gmisclib.chunkio.chunk)
source code
Class Variables
  __doc__ = """Low level file I/O operatio...
Method Details

__init__(self, fd)
(Constructor)

source code 

Constructor.

Overrides: chunk.__init__

more(self)

source code 

Returns False if the data source is empty.

Returns:
True if there is more data.
Overrides: chunk.more

readchunk(self)

source code 

Read in the next white-space delimited chunk of text.

Overrides: chunk.readchunk

Class Variable Details

__doc__

Value:
"""Low level file I/O operations.
		This class represents a file as a sequence
		of white-space separated chunks of data.
		"""