1 15 16 package org.textmining.text.extraction.sprm; 17 18 24 25 public class SprmIterator 26 { 27 private byte[] _grpprl; 28 int _offset; 29 30 public SprmIterator(byte[] grpprl) 31 { 32 _grpprl = grpprl; 33 _offset = 0; 34 } 35 36 public boolean hasNext() 37 { 38 return _offset < _grpprl.length; 39 } 40 41 public SprmOperation next() 42 { 43 SprmOperation op = new SprmOperation(_grpprl, _offset); 44 _offset += op.size(); 45 return op; 46 } 47 48 49 } 50 | Popular Tags |