#FEATURE by cg
authorClaus Gittinger <cg@exept.de>
Tue, 11 Apr 2017 17:06:58 +0200
changeset 3950 c448593ab6ee
parent 3949 4009057d48a3
child 3951 e5d3a0e5404f
#FEATURE by cg class: PNGReader added: #processEXEXChunkLen: changed: #processChunk:len:
PNGReader.st
--- a/PNGReader.st	Tue Apr 11 12:42:12 2017 +0200
+++ b/PNGReader.st	Tue Apr 11 17:06:58 2017 +0200
@@ -588,6 +588,7 @@
     ].
 
     type = 'niVI' ifTrue:[^ self processNIVIChunkLen:len].
+    type = 'exEX' ifTrue:[^ self processEXEXChunkLen:len].
 
     ('PNGReader: unrecognized chunk: ' , type , ' ignored.') infoPrintCR.
 
@@ -595,7 +596,18 @@
     ^ true.
 
     "Created: / 21-06-1996 / 21:10:37 / cg"
-    "Modified: / 17-02-2017 / 11:32:06 / cg"
+    "Modified: / 11-04-2017 / 17:04:12 / cg"
+!
+
+processEXEXChunkLen:len    
+    "/ this cunk contains an expecco sample network.
+    "/ ...to read it (using the expecco importer),
+    "/ create a reader with a chunkHook and extract it there.
+    Logger info:('PNG: skip exEX chunk').
+    inStream skip:len.
+    ^ true.
+
+    "Created: / 11-04-2017 / 17:06:27 / cg"
 !
 
 processGAMAChunkLen:len