class_docstr: Class to parse an XML string into a CIFTI-2 header object
class_docstr_tok: ["Class","to","parse","an","XML","string","into","a","CIFTI-2","header","object"]
docstr: Collect character data chunks pending collation
  
  The parser breaks the data up into chunks of size depending on the
  buffer_size of the parser.  A large bit of character data, with standard
  parser buffer_size (such as 8K) can easily span many calls to this
  function.  We thus collect the chunks and process them when we hit start
  or end tags.
docstr_tok: ["Collect","character","data","chunks","pending","collation","The","parser","breaks","the","data","up","into","chunks","of","size","depending","on","the","buffer_size","of","the","parser",".","A","large","bit","of","character","data",",","with","standard","parser","buffer_size","(","such","as","8K",")","can","easily","span","many","calls","to","this","function",".","We","thus","collect","the","chunks","and","process","them","when","we","hit","start","or","end","tags","."]
code: def CharacterDataHandler(self, data):
      """Collect character data chunks pending collation
  
      The parser breaks the data up into chunks of size depending on the
      buffer_size of the parser.  A large bit of character data, with standard
      parser buffer_size (such as 8K) can easily span many calls to this
      function.  We thus collect the chunks and process them when we hit start
      or end tags.
      """
      if self._char_blocks is None:
          self._char_blocks = []
      self._char_blocks.append(data)
  
imports: from io import BytesIO
  import numpy
  from packaging.version import Version, parse
  from ..None import xmlutils
  from ..batteryrunners import Report
  from ..nifti1 import Nifti1Extension, extension_codes, intent_codes
  from ..nifti2 import Nifti2Header, Nifti2Image
  from ..spatialimages import HeaderDataError
  from .cifti2 import CIFTI_BRAIN_STRUCTURES, CIFTI_MODEL_TYPES, Cifti2BrainModel, Cifti2Header, Cifti2HeaderError, Cifti2Label, Cifti2LabelTable, Cifti2Matrix, Cifti2MatrixIndicesMap, Cifti2MetaData, Cifti2NamedMap, Cifti2Parcel, Cifti2Surface, Cifti2TransformationMatrixVoxelIndicesIJKtoXYZ, Cifti2VertexIndices, Cifti2Vertices, Cifti2Volume, Cifti2VoxelIndicesIJK, _underscore
label_desc: Use image node_id 4 for calling the Cifti2Parser obj's underlying member method code with example usage: obj.CharacterDataHandler(data) without return types