Changeset 387 for pkpgcounter/trunk/pkpgpdls/zjstream.py
- Timestamp:
- 09/05/06 23:44:49 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pkpgcounter/trunk/pkpgpdls/zjstream.py
r385 r387 34 34 """A parser for ZjStream documents.""" 35 35 def isValid(self) : 36 """Returns 1 if data is ZjStream, else 0."""36 """Returns True if data is ZjStream, else False.""" 37 37 if self.firstblock[:4] == "ZJZJ" : 38 38 self.logdebug("DEBUG: Input file is in the Zenographics ZjStream (little endian) format.") 39 39 self.littleEndian() 40 return 140 return True 41 41 elif self.firstblock[:4] == "JZJZ" : 42 42 self.logdebug("DEBUG: Input file is in the Zenographics ZjStream (big endian) format.") 43 43 self.bigEndian() 44 return 144 return True 45 45 else : 46 return 046 return False 47 47 48 48 def littleEndian(self) :